-
Hey, I have a repository https://github.com/Tsovak/go-test-parser where I'm using goreleaser for different OS. Inside the binary, I store the html file, so running in Linux says that the file does not exist. I think the problem with goreleaser because build on the Linux machine working correctly. So the .goreleaser.yml is
with Github actions
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Are you embedding the files in your go code? AFAIK, for that to work you need to embed the files in your go code with something like go.rice, statik or something like that. It probably works locally because you build and run in the folder your code is, so the paths are there, if you move the binary to another folder and run it, it will probably fail too. |
Beta Was this translation helpful? Give feedback.
Are you embedding the files in your go code? AFAIK, for that to work you need to embed the files in your go code with something like go.rice, statik or something like that.
It probably works locally because you build and run in the folder your code is, so the paths are there, if you move the binary to another folder and run it, it will probably fail too.