I just spent an hour trying to figure out why the go compiler in my pipeline turned this code into an ar archive

turns out the code is from the go 1.4 era where it was allowed to have your entrypoint in any package as long as there was a main func, now the package must be called main too

Sign in to participate in the conversation
Serenity Laboratories

Welcome to the Serenity Laboratories public Mastodon instance. This is a stable instance with high standards of curation and moderation. Please read those before registering. The short version is: No Nazis. No Fascists. No bigotry. Listen and be excellent to other people.