Comments (8)
Ah, that sounds like you've found the problem! :)
from antq.
@dharrigan Hmm.. It seems to work well in my environment.
$ cat deps.edn
{:paths ["src"]
:deps {org.clojure/clojure {:mvn/version "1.10.1"}}
:aliases
{:uberjar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.161"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.uberjar"]}
:jar {:extra-deps {seancorfield/depstar {:mvn/version "1.1.136"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.jar"]}
:antq {:replace-deps {org.slf4j/slf4j-nop {:mvn/version "1.7.30"}
antq/antq {:mvn/version "0.10.0"}}
:main-opts ["-m" "antq.core"
"--skip" "pom"
"--upgrade"
"--force"]}}}
$ clj -M:antq
| :file | :name | :version | :latest-version |
|----------+----------------------+----------+-----------------|
| deps.edn | seancorfield/depstar | 1.1.136 | 2.0.165 |
Upgraded seancorfield/depstar '1.1.136' to '2.0.165' in deps.edn.
$ cat deps.edn
{:paths ["src"]
:deps {org.clojure/clojure {:mvn/version "1.10.1"}}
:aliases
{:uberjar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.165"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.uberjar"]}
:jar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.165"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.jar"]}
:antq {:replace-deps {org.slf4j/slf4j-nop {:mvn/version "1.7.30"}
antq/antq {:mvn/version "0.10.0"}}
:main-opts ["-m" "antq.core"
"--skip" "pom"
"--upgrade"
"--force"]}}}
from antq.
That's interesting. I'm able to reproduce it 100%
I discovered that if I put another entry before the uberjar
, it fails, but if the uberjar
etc., is at the start, as in your example, it works...
i.e., with this deps.edn
:
{:aliases
{:uberjar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.165"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.uberjar"]}
:jar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.161"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.jar"]}
:antq {:replace-deps {org.slf4j/slf4j-nop {:mvn/version "1.7.30"}
antq/antq {:local/root "/home/david/tmp/antq/target/antq-standalone.jar"}}
; :mvn/version "0.10.0"}}
:main-opts ["-m" "antq.core"
"--skip" "pom"
"--upgrade"
"--force"]}}
Then it upgrades successfully, but with this deps.edn, it does not...
{:aliases
{:1.10 {:override-deps {org.clojure/clojure {:mvn/version "1.10.1"}}}
:uberjar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.165"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.uberjar"]}
:jar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.161"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.jar"]}
:antq {:replace-deps {org.slf4j/slf4j-nop {:mvn/version "1.7.30"}
antq/antq {:local/root "/home/david/tmp/antq/target/antq-standalone.jar"}}
; :mvn/version "0.10.0"}}
:main-opts ["-m" "antq.core"
"--skip" "pom"
"--upgrade"
"--force"]}}}
So it appears that having an entry prior to the duplicate jar deps entry, causes the second one not to upgrade.
from antq.
That's weird... It work for me.
$ cat deps.edn
{:aliases
{:1.10 {:override-deps {org.clojure/clojure {:mvn/version "1.10.1"}}}
:uberjar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.161"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.uberjar"]}
:jar {:extra-deps {seancorfield/depstar {:mvn/version "1.1.136"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.jar"]}
:antq {:replace-deps {org.slf4j/slf4j-nop {:mvn/version "1.7.30"}
antq/antq {:mvn/version "0.10.0"}}
:main-opts ["-m" "antq.core"
"--skip" "pom"
"--upgrade"
"--force"]}}}
$ clj -M:antq
| :file | :name | :version | :latest-version |
|----------+----------------------+----------+-----------------|
| deps.edn | seancorfield/depstar | 1.1.136 | 2.0.165 |
Upgraded seancorfield/depstar '1.1.136' to '2.0.165' in deps.edn.
$ cat deps.edn
{:aliases
{:1.10 {:override-deps {org.clojure/clojure {:mvn/version "1.10.1"}}}
:uberjar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.165"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.uberjar"]}
:jar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.165"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.jar"]}
:antq {:replace-deps {org.slf4j/slf4j-nop {:mvn/version "1.7.30"}
antq/antq {:mvn/version "0.10.0"}}
:main-opts ["-m" "antq.core"
"--skip" "pom"
"--upgrade"
"--force"]}}}
Ah... if one of the same entries has the latest version, the version check may not work properly, so maybe this is the cause?
$ cat deps.edn
{:aliases
{:1.10 {:override-deps {org.clojure/clojure {:mvn/version "1.10.1"}}}
:uberjar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.161"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.uberjar"]}
:jar {:extra-deps {seancorfield/depstar {:mvn/version "2.0.165"}}
:jvm-opts ["-Dclojure.compiler.direct-linking=true"]
:main-opts ["-m" "hf.depstar.jar"]}
:antq {:replace-deps {org.slf4j/slf4j-nop {:mvn/version "1.7.30"}
antq/antq {:mvn/version "0.10.0"}}
:main-opts ["-m" "antq.core"
"--skip" "pom"
"--upgrade"
"--force"]}}}
$ clj -M:antq
All dependencies are up-to-date.
from antq.
I'll fix it. thanks!
from antq.
@dharrigan I tried to fix in dev
branch.
Could you try dev
branch?
from antq.
Hi!
Confirm fixed :-) Arigato!
from antq.
@dharrigan Thanks for your confirmation!
I just cut a new release #52
from antq.
Related Issues (20)
- Returning the wrong version when using :type :git-tag-and-sha HOT 4
- Check outdated dependencies by the last release date
- Execution error (NullPointerException) at antq.upgrade.pom/version-property-name HOT 4
- It seems like some packages cannot be installed because they can only be found on the Maven server. HOT 1
- Consider to use aliases for excluding deps in deps.edn
- API for checking and updating files rather than dep maps? HOT 2
- Transitive feature causes an execution error HOT 9
- Upgrade should follow Maven relocations HOT 4
- :transitive option is missing from help of 'tool' HOT 1
- Transitive check doesn't support custom repositories HOT 2
- Exclusions not supported in leiningen plugin
- How to exclude only prereleases? HOT 4
- Consider adding a new reporter or a flag to make viewing changes easier HOT 8
- Upgrade is not working when dependency version is destructed. HOT 7
- Update from 2.7.1133 -> 2.8.1165 HOT 2
- Duplicate entries on github actions update HOT 5
- Does not detect outdated version of clj-kondo with DeLaGuardo/setup-clojure GitHub Action HOT 4
- How --directory default option can be turned off? HOT 1
- antq.api/upgrade-deps! not working for dependencies that are keyword extracted HOT 5
- Lettuce 6.4.0.M1 was picked over 6.4.0.RELEASE HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antq.