Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ and this project adheres to
`setup-x86_64.exe`).
- The Windows runner no longer prepends `%CYGWIN_ROOT%\bin` to `PATH`.

### Fixed

- Switches in Unix are now properly initialized before running depext.

## [1.1.7]

### Changed
Expand Down
3 changes: 3 additions & 0 deletions dist/install-ocaml-unix.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/install-ocaml-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ CURRENT_OCAML=$(opam info -f version ocaml --color=never)

if [ "$CURRENT_OCAML" != "$1" ]; then
opam switch set "$1" 2>/dev/null || opam switch create "$1" "$1"
else
# opam has been initialized with --bare, the switch needs to be activated
opam switch set "$1" 2>/dev/null
fi