cbft
cbft copied to clipboard
Use Go workspace for path management
This structure is creating some weird SBOMs. By using the following go.work file, the package naming is preserved
go 1.22.1
use (
./cbft
./cbftx
./cbgt
./goproj/src/github.com/couchbase/cbauth
./goproj/src/github.com/couchbase/go_json
./goproj/src/github.com/couchbase/go-couchbase
./goproj/src/github.com/couchbase/gomemcached
./goproj/src/github.com/couchbase/goutils
./goproj/src/github.com/couchbase/regulator
./hebrew
)
https://go.dev/doc/tutorial/workspaces
@abhinavdangeti could I get a review for this?
@LaurentGoderre couchbase/cbft is meant to work within the couchbase eco system, this code is necessary for our builds to work and maintainance. If this is something you want to drop - I would recommend forking this project and making the changes you wish.
@abhinavdangeti The snippet I have include in the description using Go workspaces is the recommended way to do this specific thing the project is doing. It gives the same benefits while generating proper dependency metadata in the build.