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

Add pixi task to update registry #962

Merged
merged 2 commits into from
Jan 16, 2024
Merged

Add pixi task to update registry #962

merged 2 commits into from
Jan 16, 2024

Conversation

visr
Copy link
Member

@visr visr commented Jan 16, 2024

With our current workflow, it can happen that dev A updates the packages in Manifest.toml, and dev B gets the error:

ERROR: Unsatisfiable requirements detected for package X

The problem is that dev B's local registry is outdated, so it is not aware of the new versions of X that are being used. This adds a task to update the registry, and runs it by default when building or installing. That should make this error more rare, and perhaps easier to resolve.

Note that this is an issue that may get resolved in Pkg in the future; JuliaLang/Pkg.jl#3713

@visr visr requested a review from Hofer-Julian January 16, 2024 10:56
pixi.toml Outdated
"install-ribasim-python",
"install-ribasim-api",
"install-ribasim-testmodels",
] }
install = { depends_on = ["install-without-pre-commit", "install-pre-commit"] }
# Instantiate
update-registry-julia = "julia --project --eval='using Pkg; Registry.update()'"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is --project needed here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good point.

@visr visr merged commit ed8f0b8 into main Jan 16, 2024
17 of 18 checks passed
@visr visr deleted the registry branch January 16, 2024 14:47
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

Successfully merging this pull request may close these issues.

2 participants