Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

fish-food name and script name look like they need to be identical #124

Open
scranton opened this issue Mar 1, 2019 · 3 comments
Open
Labels
question/support Asking for support or for an answer to a question

Comments

@scranton
Copy link

scranton commented Mar 1, 2019

I created a script called gloo-ctl.lua with an internal name of "local name = 'glooctl'" as that's the executable name. I can install and uninstall gloo-ctl correctly, but when I do a gofish upgrade I get this error.

Error: open /usr/local/Fish/Rigs/github.com/fishworks/fish-food/Food/glooctl.lua: no such file or directory

Feels like there's an assumption somewhere that script name matches exec name.

@bacongobbler
Copy link
Contributor

bacongobbler commented Mar 1, 2019

Good catch. Yes, there is an underlying assumption that the name of the file in the repository and the food's name are identical. In the future, gofish create glooctl should set this up properly. :)

In the meantime, would you mind PR'ing a fix to glooctl to rename the file to glooctl.lua? That should get things rolling again for you.

@bacongobbler
Copy link
Contributor

Perhaps we should have gofish lint catch that case as well.

@scranton
Copy link
Author

scranton commented Mar 1, 2019 via email

@bacongobbler bacongobbler added the question/support Asking for support or for an answer to a question label Mar 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question/support Asking for support or for an answer to a question
Projects
None yet
Development

No branches or pull requests

2 participants