Editing Go dependencies
Pin a sealed version in go.mod (direct dependencies only).
Direct dependencies
The Go modules manifest is go.mod. Update the version in the require directive:
require (
- github.com/example/foo v1.2.3
+ github.com/example/foo v1.2.3-sp1
)Run go mod tidy (to refresh go.sum) and then go build; the resolved version is the sealed counterpart pulled through go.sealsecurity.io.
Transitive dependencies
This page covers direct dependencies only. For overriding transitive dependencies in Go modules, work with your Seal account team to confirm the right pattern for your project's setup.
Related
Configuring Go: the package-manager setup that points Go modules at the Seal Artifact Server.
Last updated