Repository navigation
ci: mage -> ./hack/make - #3756
Conversation
|
Awww no more mage? What's the rationale? Out of curiosity, I'm happy to use either. |
mage is still there, but instead of using it as a CLI we use it as a library. This is hidden behind a Makefile for convenience (
Rationale is:
|
|
Nice, will rebase #3755 on this too, since it's blowing up in CI because |
There was a problem hiding this comment.
Dang, I glossed over this but "$@" doesn't do what I hoped it would - what it does in Bash - it's just really close. It only takes the first argument, so I can't do this for #3739: make boot:dev sdk:go:test:
❯ make boot:dev sdk:go:test
not enough arguments for target "Boot:Dev", expected 1, got 0
exit status 2
make: *** [Makefile:6: boot:dev] Error 1
In general this limitation makes me wonder if the Makefile wrapper is even worth it since we wouldn't be able to use it for targets that take arguments.
Maybe we could just have a hack/mage wrapper script? (Or wherever, don't really care where it lives.)
There was a problem hiding this comment.
Dang, I glossed over this but "$@" doesn't do what I hoped it would - what it does in Bash - it's just really close. It only takes the first argument, so I can't do this for #3739: make boot:dev sdk:go:test:
❯ make boot:dev sdk:go:test
Right -- this means make boot:dev AND sdk:go:test.
Had the same problem with sdk:*:publish <argument> Perhaps a shell script as you suggested would be better.
One weird thing I can't understand is how do we "make" multiple targets with mage? Maybe the answer is we don't.
There was a problem hiding this comment.
Updated to ./hack/make
There was a problem hiding this comment.
NOTE: didn't call it ./hack/mage because we're not using mage that much now.
Would be fairly trivial to have our own main at this point.
0fb2ddd to
8a16dfa
Compare
- Run `make X` instead of `mage X` - Use vendored version of mage instead of binary Signed-off-by: Andrea Luzzardi <[email protected]>
sipsma
left a comment
There was a problem hiding this comment.
Awesome, no more googling "how to install mage" and love the fact that we could easily go run anything else now easily too (or dagger do, etc.)

./hack/make Xinstead ofmage X/cc @gerhard @sipsma @vito