Packaging release
Linux packages are distributed in one of two ways: as source code or as a binary (compiled) package. When shipped as source code, a makefile, or similar, would be included to instruct the compiler on how to create the executable. With Go, this is different due to the standard structure and build tools, so we don't need to include a make file. As developers, we simply invoke go install for the current project or go get for one that is not yet downloaded. Anyone familiar with Go will know this process and so there is no required build information in this case.
However, we are packaging for distribution to regular users, not developers. For this to work , we could use distribution-specific packaging (which we will look at later ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access