-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Fix: make 'v' prefix optional #626
Conversation
Thanks! An immediate issue is that there are no tests to ensure that the resolvers do support the new kind of version tags (install might be broken), or that they can handle a mix of them from different shards (probably not an issue). I suppose edge cases should also be handled: what if both tags exist (with the current patch they will both be listed)? won't Molinillo break with two version tags? what if they point to different commits? should that be an error? should one form take priority (to add to the confusion). Another issue is that sites such as https://shardbox.org and the ecosystem will now have to support both kinds, instead of assuming a convention. |
Yeah, this needs a lot more work to ensure everything is working correctly. So far there has not been any talk about these details because #521 hasn't come to any conclusion whether this is actually wanted. |
@ysbaddaden I'm not sure I understand what you're asking for here — the prefix was a hard requirement prior to this meaning resolvers had to support it, all this PR does is remove said requirement which wouldn't affect anything.
This isn't changing any core functionality of the resolver. If both
Not sure how that plays into this? If Shardbox also faced this issue then it should have been something addressed on their end.
@straight-shoota I opted for this solution because it's easier to implement (literally a one line change) and aligns with other package management tools. Changing the error message to be more user-friendly was the original suggestion but Shards' codebase is annoyingly ambiguous regarding typings and its order of operations (highlighted in #574). |
The test suite verifies that version tags starting with a
Having both |
As far as I can see the resolver specs don't test for "v" so I'm not sure what to change there.
I'm not sure where exactly this would go and I'm not having any issues reproducing it locally. |
This pull request has been mentioned on Crystal Forum. There might be relevant details there: |
I'm closing this because it's an incomplete, trivial solution. There's no point in keeping this PR open and spreading the discussion across multiple threads. Changing this behaviour is decisively not a one-line change. It involves other parts of the code base, the spec suite and other participants in the shards ecosystem at large. We should continue the discussion in #521 about whether this change actually makes sense, and if so, figure out how to properly implement it. |
Closes #521.