cbft icon indicating copy to clipboard operation
cbft copied to clipboard

Use Go workspace for path management

Open LaurentGoderre opened this issue 1 year ago • 3 comments

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

LaurentGoderre avatar Mar 25 '24 21:03 LaurentGoderre

@abhinavdangeti could I get a review for this?

LaurentGoderre avatar Nov 12 '24 15:11 LaurentGoderre

@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 avatar Nov 12 '24 17:11 abhinavdangeti

@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.

LaurentGoderre avatar Nov 12 '24 17:11 LaurentGoderre