-
Notifications
You must be signed in to change notification settings - Fork 34
Description
In the setup_fortran workflow there is a hardwired version of each compiler specified (currently gfortran-v13 on Mac OS). This caused me several days of headaches since notionally two workflow paths which both install gfortran via homebrew actually lead to incompatible compiler versions, e.g.:
The problem occurred because "brew install " uses the default "brew install gcc" whereas the setup-fortran workflow installs a specific (older) version, even though both install gfortran via homebrew.
While I have implemented a workaround (do not use setup-fortran at all, just manually symlink the homebrew-installed gfortran), it would be nice if there could be an option to setup-fortran to always install the latest available version of a compiler.
I would value this because it tests the "typical" use case for users, who typically type "brew install gcc" or "apt-get install gfortran" without specifying the version number.
Would it be possible to add an option to just install the default version available on each platform (e.g. for the Mac workflow just don't specify the compiler version in the brew call)? Or is this already ruled out on policy grounds?