-
Notifications
You must be signed in to change notification settings - Fork 190
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
nimble url-dependency is dependent on package-name only #574
Comments
Your repo is gone :( I do see the problem though and indeed it is challenging. I'm actually a little confused by the output you got, based on the output the In any case, I think we need to do the following here:
Of course, what we could also do is make packages that include a nickname in their name, so your package would be |
Sorry, I forgot that I had this related issue open. I recreated the state, it is reproducable again:
If you create a I think the two points you mentioned are a very good start. I agree it's hard to change the import system, if the nickname syntax wouldn't be too hard to implement I think this could solve nearly all cases (not the case where nickname and package name is the same but on different hostname, but this probably never happens). |
In best case a url dependency like
requires "https://github.com/user/package >= 1.2.3"
should require the package from the given url, in the given version. That means the package should be detected by package name + package version + package author (+ maybe package url).Currently my tests with different package names and different versions show that it only depends on package name + package version. That means package name
A
from sourceS2
in versionV2
is considered an update ofA
from sourceS1
with versionV1
ifV2
>V1
. This is normally not the case ifV1.repoUrl != V2.repoUrl
and will cause hard problems.A package with same name from different author will break code dependent on this import (See #573 that it will break existing code).
Example:
nimble install https://github.com/ephja/lzma
installlzma @ 0.1.0
;import lzma
does work.nimble install https://github.com/tim-st/nim-zim@#nimble-same-name
Installs
lzma @ 0.1.1
andzim @ 0.1.0
:And consideres it working.
Now import
lzma
doesnt work anymore.import zim
doesnt work too, because it depends onlzma
.The text was updated successfully, but these errors were encountered: