versions icon indicating copy to clipboard operation
versions copied to clipboard

Version numbers identified by variables aren't handled properly

Open pmonks opened this issue 7 years ago • 3 comments

I occasionally use a variable to define a version number for a set of related libraries (usually raw Java libs that all need to be pinned to the same version).

Here's an example.

Unfortunately versions doesn't seem to handle that properly, and reports out of date dependencies

Here's the output for the same example.

pmonks avatar Dec 07 '17 18:12 pmonks

Note: may be one specific symptom of the more general issue described in #5.

pmonks avatar Dec 07 '17 18:12 pmonks

Yeah it's a bit of a problem, because this is a common thing to want to do. I've been thinking maybe about creating a lein and boot plugin that people can run in CI, which would send all of the dependencies in the project on each build. That would let me handle any arbitrarily complex scheme that people do with lein and boot. The other option is that I spin up containers somewhere and evaluate the project myself to get their versions.

danielcompton avatar Dec 09 '17 02:12 danielcompton

I was just thinking about how this could be done in a container, just for leiningen related projects:

wget  https://url-to/project.clj 
lein pprint > result.clj

Then parse the result.clj file...

dotemacs avatar Dec 15 '17 09:12 dotemacs