Fork me on GitHub
#tools-deps
<
2019-07-08
>
lepistane05:07:39

i think it already does

dharrigan06:07:18

I'm not seeing that described in the deps_and_cli documentation

dharrigan06:07:26

(in the aliases section)

yogidevbear06:07:12

I don't think it discusses them directly, but there are alias references in the examples https://clojure.org/guides/deps_and_cli

yogidevbear06:07:02

Then again ☝️

dharrigan06:07:07

Yes, I read that

dharrigan06:07:21

but nowhere does it say, or imply or give example that an alias can reference another alias

yogidevbear06:07:35

Oh I'm with you now

dharrigan06:07:01

{:aliases {:foo ....
                     :bar :foo}

dharrigan06:07:03

or something like that

dharrigan06:07:11

where bar can pull in the configuration of foo

dharrigan06:07:26

so intead of having a big command line like

dharrigan06:07:11

clj -A:repl:bar:test:foo you can do cli -A:super-aliases-to-the-max that is the aggregation of repl:bar:test:foo

yogidevbear06:07:08

Lol, love the choice of naming -A:super-aliases-to-the-max

yogidevbear07:07:28

I might be reading the source incorrectly, but looking through the t.d.a reader.clj, I don't think alias of aliases is supported. Disclaimer: insert /giphy I don't know what I'm doing 😉

dominicm08:07:58

Inheritance is not supported. I don't think it's going to be, but I'm not qualified to make the assertion on the latest thinking.

sogaiu08:07:42

after a while, generating one's deps.edn from something else starts to seem attractive 🙂

kirill.salykin09:07:19

hi, I am trying to add athena-jdbc jar as local/root but without any success

[ERROR] 'artifactId' with value 'AthenaJDBC${env.JDBC_V}' does not match a valid id pattern. @

kirill.salykin09:07:37

Is this something wrong with pom file?

kirill.salykin09:07:00

<groupId>Athena</groupId>
    <artifactId>AthenaJDBC${env.JDBC_V}</artifactId>
    <version>${env.MAJOR_V}.${env.MINOR_V}.${env.REVISION_V}.${env.BUILD_V}</version>
    <packaging>jar</packaging>
    <name>AthenaJDBC${env.JDBC_V}</name>
    <url>http://maven.apache.org</url>

dharrigan09:07:38

@dominicm I wonder why not supported? I'm sure it was thought about/discussed/hammocked.

felipebarros20:07:15

For that use case, why not just use the alias functionality of your shell? It may not be ideal but it will surely do what you want. max-alias RET.

seancorfield17:07:48

@kirill.salykin That pom.xml file is expecting you to have environment variables set to specify all those variables. If you have that as a local dep, I suspect that the project is expecting the final pom to be built as part of the build/deploy process -- and does not expect you to try to use the project from source.

seancorfield17:07:44

You could probably use this version direct from Maven https://search.maven.org/artifact/io.burt/athena-jdbc/0.1.0/jar -- that would be a regular remote dep.

kirill.salykin18:07:39

Thanks! You are the mvp, was a bit surprised that jar contains half baked pom