-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Returning the wrong version when using :type :git-tag-and-sha #213
Comments
@rafaeldelboni Thanks for your reporting!
In git tags, strings other than version numbers may be included, so in antq, they are excluded from comparison. Lines 17 to 19 in 0a6ce33
Therefore, if a tag name contains numbers, they are used to determine which one is the latest version. Currently, there is no process to exclude just the non-semantic versioning tags, so excluding the relevant version may be a workaround. (outdated-deps
{'lilactown/helix
{:git/url "https://github.com/lilactown/helix.git"
:sha "3ce634f16e86700ecc9cc1b091924bc327440c36"
:tag "0.1.9"}}
{:exclude ["lilactown/helix@will/hf021120"]})) However, in the case of ClojureScript, there are many versions to exclude, so it is necessary to find a way to specify a version range. (outdated-deps
{'org.clojure/clojurescript
{:git/url "https://github.com/clojure/clojurescript.git"
:tag "r1.11.57"
:sha "e4ff22f"}}
;; THIS IS EXAMPLE. NOT WORKING FOR NOW.
{:exclude ["org.clojure/clojurescript@r3*"]}) We are currently discussing and implementing this in #212, but since it assumes semantic versioning for exclusions, it doesn't seem to fit this case well. As mentioned above, git tags tend to include extra strings that can affect the results, so it is better to use the ones deployed to the Maven repository. |
Thanks for the clarification!
Unfortunately, I have a very niche necessity that I need to download all my deps using git, but I completely understand that I'm using your tool "wrong". I was thinking about this "problem" and had an idea, would it be possible to add a new option like (Sorry if this is a completely dumb question, didn't look at |
For now, there are no plan to implement the On the other hand, I'm considering to add a feature to check for versions which is up-to-date but have an older release date. If this feature is implemented, you should be able to access the tag dates via the API, and users are free to sort by them. |
Thanks, I've subscribed to the new issue you mentioned I will close this issue for now. |
When using
outdated-deps
passing dependencies that are listed with git tag/sha it is returning the wrong version or no updateCase 1
Wrong version
Reproduce
Expected
Return the latest version at the moment writing this issue:
https://github.com/clojure/clojurescript/releases/tag/r1.11.60
Case 2
Says that the current version is the latest, but is not the case
Reproduce
Expected
Return the latest version at the moment writing this issue:
https://github.com/lilactown/helix/releases/tag/0.1.10
The text was updated successfully, but these errors were encountered: