-
Notifications
You must be signed in to change notification settings - Fork 40
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
Create a switch by default when no opam files are present #678
Comments
I believe the undesired behaviour can be avoided by disabling pinning: - name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.14.1
opam-pin: false I use a dedicated workflow for formatting here: |
The next major refactoring will improve the handling of such things, but I've been working on a lot of real world stuff lately and the ETA is still not clear... @psafont's suggestion is the best in the short term. |
I tried this but got the same error:
Why would disabling pinning also cause it to create a switch? |
Does this still happen? |
I don't think this is happening anymore. |
I want to make a test that just installs dune and ocamlformat and runs
dune fmt
. I don't want to install all the dependencies of myproject - just dune and ocamlformat.
Currently this doesn't work:
The error is:
This is part of the log here: https://github.com/gridbugs/llama/actions/runs/5687888861/job/15416935603
I think I could work around this by checking out the project before setting up ocaml but that would waste time downloading dependencies that I don't need for this test.
The text was updated successfully, but these errors were encountered: