goblin icon indicating copy to clipboard operation
goblin copied to clipboard

The cmd interface is not working

Open weblooter opened this issue 3 months ago • 5 comments

There is an example on the website:

curl -sf http://goblin.run/vito/bass/cmd/bass | sh

At the moment, it is not working and gives an error:

Error: Failed to resolve version:

The situation is similar with my package

curl -sf https://goblin.run/weblooter/helheim/cmd/helheim-slave | sh

weblooter avatar Oct 31 '25 11:10 weblooter

The resolve might have a hard time finding the version some times, while it works in most cases, sometimes it's just hard.

You can however use this override to be a little more verbose

curl -sf https://goblin.run/github.com/weblooter/helheim | CMD_PATH=/cmd/helheim-slave sh

barelyhuman avatar Oct 31 '25 11:10 barelyhuman

Also, there seems to be a bug in deeper resolves so I'll fix them in the next release. I'll also update the docs to the verbose one is show before the shorthand so it's easier to look up

barelyhuman avatar Oct 31 '25 11:10 barelyhuman

The resolve might have a hard time finding the version some times, while it works in most cases, sometimes it's just hard.

You can however use this override to be a little more verbose

curl -sf https://goblin.run/github.com/weblooter/helheim | CMD_PATH=/cmd/helheim-slave sh

That's the first thing I thought of. But for some reason, your team builds the helheim-master application instead of helheim-slave (this is noticeable if you call the -h flag). I've already thought about this implementation =)

weblooter avatar Oct 31 '25 12:10 weblooter

curl -sf https://goblin.run/github.com/weblooter/helheim | CMD_PATH=/cmd/helheim-slave sh

Among other things, this method of implementation entails minor inconveniences. For example, I have 2 applications within the package - helheim-master & helheim-slave.

The above command builds the helheim package regardless of CMD_PATH. If I need to put these two applications on the same server, they will start competing with each other if they are not replaced.

An attempt to rename /usr/local/bin/helheim to /usr/local/bin/helheim-master fails. If I understood correctly, then this is a link.

weblooter avatar Oct 31 '25 12:10 weblooter

The docs mentions how to change the BIN name as well , you can look up this issue comment for an existing example. I understand that this is rather inconvenient and I'll debug as to why the resolution fails but the verbose solution can be used for the time being

barelyhuman avatar Oct 31 '25 18:10 barelyhuman