Open punov opened 9 months ago
⨯ release failed after 0s error=build for gnsslogger does not contain a main function
Goreleaser also keeps throwing this error for any of .gorelease.yaml files:
goreleaser release
• starting release... ⨯ release failed after 0s error=yaml: unmarshal errors: line 13: field replacements not found in type config.Archive
Version is 1.21
Hey @punov, so the issue is that there is no more main function in the code. If you check the line that talks about binaries in the goreleaser.yaml it means to say that the gnsslogger is used as a cli.
Now it seems that there isn't anymore main so it would mean that it's used as a lib. I do not know if that is intended or not.
How do you want to deploy? De you want to deploy it in the buildroot / mender?
@punov create a main
file under /cmd/gnss-logger
Check de data-logger main file ...
Take a look at the history at some point there was a main file.
@Eduard-Voiculescu @billettc How do you guys release it? gorelease references to /cmd/gnsslogger that doesn't exist, you also removed main.go from the project, so how do you usually release it?