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

Possibility to register the same version on two or more registries ? #72

Closed
BambOoxX opened this issue Jun 29, 2023 · 2 comments
Closed

Comments

@BambOoxX
Copy link

Hi, I have a local registry where I develop my packages, accessible to only a few people but then when I want to share it more globally in my organization, I need to register them on a more public registry.
In the end, I have on my side the two registries set up, but both of them should have all of the versions available.
Right now (it's the first time I get the issue) Pkg complains that ERROR: hash mismatch in registries for <package name> at version <x.y.z>.
And indeed the two hashes for this version of the package in both registries are different, so I'm guessing each call to register hashes either time information or registry information, leading to this mismatch.

I'm wondering if it is malpractice to register the same version of a package on two registries, or if it is a missing way to register on multiple registries at the same time.

@GunnarFarneback
Copy link
Owner

so I'm guessing each call to register hashes either time information or registry information, leading to this mismatch.

It hashes the contents of the package. Most likely you have registered the same version from different commits to the different registries.

It's fine to register to two different registries but you need to make sure that you register the same commit.

@BambOoxX
Copy link
Author

Ah, that is indeed much more likely that I registered at two different commits. I don't know why but for some reason I thought it only accounted for the commit where the Project.toml version is modified. Thanks for the help !

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

2 participants