Bug 212453

Summary: build go tests and binaries via vendoring and not GOPATH
Product: Tools Reporter: Andrew G. Morgan (morgan)
Component: libcapAssignee: Andrew G. Morgan (morgan)
Status: RESOLVED CODE_FIX    
Severity: normal    
Priority: P3    
Hardware: All   
OS: Linux   
Kernel Version: n/a Subsystem:
Regression: No Bisected commit-id:

Description Andrew G. Morgan 2021-03-27 01:02:52 UTC
It looks like something has changed with GOPATH support. It might be time to migrate to a vendor based module layout in the main build tree... This needs investigating.
Comment 1 Andrew G. Morgan 2021-03-31 14:27:52 UTC
The dev tree builds libcap again. I guess this was a transient breakage. At some point, I should still try to figure out how to use vendoring to build in-tree though.
Comment 2 Andrew G. Morgan 2021-06-20 22:35:40 UTC
Indeed, it looks like GOPATH/GO111MODULE will be dropped in go1.17:

  https://blog.golang.org/go116-module-changes
Comment 3 Andrew G. Morgan 2021-06-21 00:56:12 UTC
This is fixed in libcap-2.51 via this commit:

  https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=1b59ff98484b5dd18bd1a0f99a002d67b6d773cd