Skip to content
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

Feature request: Run external modules directly from their ivy resource #793

Closed
lefou opened this issue Mar 20, 2020 · 5 comments
Closed
Milestone

Comments

@lefou
Copy link
Member

lefou commented Mar 20, 2020

Currently, to run external modules such like BSP it is necessary to modify the build.sc and add the dependency to it (ivy'group:artifact:version').

It would be cool, if we could run them directly from the command line, without the need to modify the build.sc.

@lihaoyi
Copy link
Member

lihaoyi commented Mar 20, 2020

yeah that would be pretty cool, not sure how it would look but we could probably make it work somehow

@lefou
Copy link
Member Author

lefou commented Mar 20, 2020

Isn't it almost the same as simulating a custom predef or some code (-c) directly?

mill ivy com.lihaoyi::mill-contrib-bsp:_ mill.contrib.BSP/install

The underscore _ could be a placeholder for the exact mill version. Or just leave it out, when version should be identical to mills version.

@lihaoyi
Copy link
Member

lihaoyi commented Dec 4, 2021

@lefou we can close this one right?

@lefou
Copy link
Member Author

lefou commented Dec 4, 2021

Oh yeah. Implemented by #1526.

@lefou lefou closed this as completed Dec 4, 2021
@lefou lefou added this to the after 0.10.0-M4 milestone Dec 4, 2021
@lefou
Copy link
Member Author

lefou commented Dec 4, 2021

Isn't it almost the same as simulating a custom predef or some code (-c) directly?

mill ivy com.lihaoyi::mill-contrib-bsp:_ mill.contrib.BSP/install

The underscore _ could be a placeholder for the exact mill version. Or just leave it out, when version should be identical to mills version.

Beside the fact, that the BSP contrib module no longer exists (it's built-in now), with mill 0.10.0-M4, it would look like this:

mill --import ivy:com.lihaoyi::mill-contrib-bsp: mill.contrib.BSP/install

See also https://com-lihaoyi.github.io/mill/mill/Contrib_Plugins.html#_bloop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants