Skip to content
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

If ~/.local/bin was already in your PATH when env.bash is sourced, and opam's bin directory is earlier in PATH, the default dune will be the one from opam #147

Open
gridbugs opened this issue Jan 2, 2025 · 0 comments

Comments

@gridbugs
Copy link
Contributor

gridbugs commented Jan 2, 2025

The dev preview installs dune to ~/.local/bin, and the env.bash script checks whether ~/.local/bin is already in PATH before prepending it. I happened to already have ~/.local/bin in my PATH when env.bash was sourced, causing it to do nothing. However I also have ~/.opam/default/bin/ in my PATH at an earlier position to ~/.local/bin. This meant that after installing the dev preview the recommended way, the dune command on my computer runs the one installed with opam and not the dev preview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant