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

Remove --skip-update and make it implied when possible #9683

Merged
merged 3 commits into from
Jan 11, 2024

Conversation

Leonidas-from-XIV
Copy link
Collaborator

@Leonidas-from-XIV Leonidas-from-XIV commented Jan 9, 2024

The only place where offline mode would work is if the repositoy URL didn't specify any hash or specified a hash that exists in the rev store.

It is easier to make the distinction on whether to update dependent on the Source than an CLI option (which if used wrong will just make dune fail).

I've fixed of_opam_url to update the repo if the revision was not found locally and is not a tag or branch, that way specifying a revision can work offline if the rev store is up to date but will transparently go online if it is out of date.

Closes #9354

@Leonidas-from-XIV Leonidas-from-XIV changed the title Remove --skip-update Remove --skip-update and make it implied when possible Jan 9, 2024
src/dune_pkg/opam_repo.ml Outdated Show resolved Hide resolved
@rgrinberg rgrinberg linked an issue Jan 10, 2024 that may be closed by this pull request
The only place where offline mode would work is if the repositoy URL didn't
specify any hash or specified a hash that exists in the rev store.

It is easier to make the distinction on whether to update dependent on
the Source than an CLI option (which if used wrong will just make dune
fail).

Signed-off-by: Marek Kubica <marek@tarides.com>
Signed-off-by: Marek Kubica <marek@tarides.com>
After the update it might either exist or still not in which case the
previous error is valid.

Signed-off-by: Marek Kubica <marek@tarides.com>
@Leonidas-from-XIV Leonidas-from-XIV merged commit 3eec695 into ocaml:main Jan 11, 2024
26 of 27 checks passed
@Leonidas-from-XIV Leonidas-from-XIV deleted the remove-skip-update branch January 11, 2024 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pkg: remove --skip-update
3 participants