APKBUILD examples:Go: Difference between revisions
Clandmeter (talk | contribs) (Created page with "== Go package policies == Go previous to version 1.6 did not handle dependencies ([https://github.com/golang/go/wiki/PackageManagementTools very well]). Every package inside...") |
Clandmeter (talk | contribs) |
||
Line 8: | Line 8: | ||
# A package has no vendor directory (or is empty). | # A package has no vendor directory (or is empty). | ||
# A package has a vendor directory and contains a vendor file. | # A package has a vendor directory and contains a vendor file. | ||
# A pacakge has a vendor directory | # A pacakge has a vendor directory has a vendor file but also includes all deps. | ||
TODO: | |||
write something about glide for #1 | |||
write something about glide or another pkg manager for #2 | |||
just do go build |
Revision as of 23:52, 15 November 2016
Go package policies
Go previous to version 1.6 did not handle dependencies (very well). Every package inside alpine aports should be made reproducible (aka reproducible builds). Many Go projects still do not support proper verdoring and will pull all its depends from master branches. Because of this, packages made in different time spans could differ from each other (they are not bit to bit equal). We can prevent this if the source from which we build will always be the same (hence we use checksums to verify source tarballs which we fetch from upstream projects).
We currently have 3 situations a Go packages could belong to:
- A package has no vendor directory (or is empty).
- A package has a vendor directory and contains a vendor file.
- A pacakge has a vendor directory has a vendor file but also includes all deps.
TODO: write something about glide for #1 write something about glide or another pkg manager for #2 just do go build