-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small refactoring and fixes to opam init
on Windows.
#6000
Commits on Jun 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 08683f1 - Browse repository at this point
Copy the full SHA 08683f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for a562b1a - Browse repository at this point
Copy the full SHA a562b1aView commit details -
Abort if --git-location doesn't contain Git
Previously, --git-location was treated as a default answer for the Git menu, so it would display an error if Git wasn't found, but then simply exit and fallback to adding Git to the Cygwin installation. Fix this and validate either --git-location argument or the git-location opamrc field as referring to a directory which contains Git.
Configuration menu - View commit details
-
Copy full SHA for d96fa34 - Browse repository at this point
Copy the full SHA d96fa34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55ef672 - Browse repository at this point
Copy the full SHA 55ef672View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75282c7 - Browse repository at this point
Copy the full SHA 75282c7View commit details -
Change the calculation for installing git
Rather than filtering git out of the package list, instead add it when required.
Configuration menu - View commit details
-
Copy full SHA for 2a03664 - Browse repository at this point
Copy the full SHA 2a03664View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4083ae - Browse repository at this point
Copy the full SHA d4083aeView commit details -
Overhaul OpamStd.Sys Cygwin functions
Make the ~cygbin parameter to the various executable identification functions optional. The parameter is renamed to search_in_first with a slightly revised semantics - if cygcheck.exe is not found in the directory, then PATH is still searched. This has a key benefit early on in opam init, as it allows cygbin to be set for an internal Cygwin installation which has not yet happened, but still permits curl (et al) to be used from PATH (e.g. when running opam init from an MSYS2 shell). Where before ~cygbin implied that cygcheck _must_ be used from the directory, the new parameter effectively prepends an additional directory to PATH.
Configuration menu - View commit details
-
Copy full SHA for 610b66a - Browse repository at this point
Copy the full SHA 610b66aView commit details -
Detect both Cygwin and MSYS2 os-distribution
Previously, MSYS2 required os-distribution to be overridden in global-variables. Now, as with Cygwin, it is inferred in the same way from cygcheck. In this commit, opam init still sets os-distribution, however, if it is manually removed from the root config file, previously `opam var os-distribution` would return `win32` but now returns `msys2`. Additionally, sys_pkg_manager_cmd is handled in the same way for MSYS2 as for Cygwin, allowing MSYS2 to be automatically added in the same way as Cygwin.
Configuration menu - View commit details
-
Copy full SHA for 857cae8 - Browse repository at this point
Copy the full SHA 857cae8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f1ca99 - Browse repository at this point
Copy the full SHA 4f1ca99View commit details -
De-label OpamSysInteract.Cygwin.install
Single argument function with a non-base type.
Configuration menu - View commit details
-
Copy full SHA for 499c9e7 - Browse repository at this point
Copy the full SHA 499c9e7View commit details -
Expand Cygwin.check_install to analyse_install
Includes more checks and also returns the kind of installation which was found.
Configuration menu - View commit details
-
Copy full SHA for 2337441 - Browse repository at this point
Copy the full SHA 2337441View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa4d39f - Browse repository at this point
Copy the full SHA fa4d39fView commit details -
Configuration menu - View commit details
-
Copy full SHA for affdbab - Browse repository at this point
Copy the full SHA affdbabView commit details -
Tweak OpamSysInteract.Cygwin.check_setup more
The ability to copy setup-x86_64.exe is no longer needed - but restore the previous functionality which only downloaded setup if it didn't exist and use this when displaying a command to the user. In this mode, we only download setup-x86_64.exe so that the command we give to the user actually works. If we're actually going to run setup-x86_64.exe, then we download the latest version.
Configuration menu - View commit details
-
Copy full SHA for c0cd8f4 - Browse repository at this point
Copy the full SHA c0cd8f4View commit details