Replies: 4 comments 5 replies
-
I think that is an interesting idea, though I heard some people opting for not having too much toolkits, because that again causes problems for users to choose which one they want 🤔 Also, maybe we should first open up an issue in https://github.com/scala/toolkit to talk about it? Or it doesn't really make sense? CC @szymon-rd |
Beta Was this translation helpful? Give feedback.
-
Scala CLI supports publishing to Maven Central, so the entry point should be considerably lower while we will stabilize that feature. What is most important, Scala CLI helps with setting up keys etc. |
Beta Was this translation helpful? Give feedback.
-
From what I know, it doesn't necessairly need to be maven central. If you have some internal artifact repo in your company, or one that you use, then you are able to create new toolkits without publishing to maven central. Then, you have to add this external repo, but I think that's a fair compromise. @tgodzik In what order does the scala-cli search the repositories? E.g. if you have an artifact with same name on maven central & your internal repo. I am asking about this to avoid introducing a new vector for supply chain attacks. |
Beta Was this translation helpful? Give feedback.
-
Closing this as other avenues have been pointed out. |
Beta Was this translation helpful? Give feedback.
-
The idea of toolkit is really nice, and the opening of the idea to third-party toolkits is awesome ... but the requirement for it to be a published library on maven central is an undeniable barrier of entry.
It'd be super nice if this requirement could be alleviated via some kind of github-integrated mechanism, which would drastically reduce the barrier of entry for users to describe their own preferred set of libraries for personal scripts. The end goal being for users to put
Scala-cli would fetch some json-file in the root dir of the repo (say
scala.toolkit.json
) from thegithub.com/baccata/scala.toolkit
repo, that would describe a list of dependencies, that scala-cli would pull for compilation.You could add some additional marks in the directive to pull from specific repos/branch/tags :
Of course the toolkit name in this proposal would have to be changed to something else to avoid collision with the existing one.
Beta Was this translation helpful? Give feedback.
All reactions