-
Notifications
You must be signed in to change notification settings - Fork 0
Testing local changes
Marin Milina edited this page May 8, 2023
·
5 revisions
Follow this instructions to quickly test the local development version of release-integration-sdk-go with plugin projects.
Use the go mod edit command to edit the github.com/digital-ai/release-integration-sdk-go
module to redirect Go tools from their module path to the local directory.
go mod edit -replace github.com/digital-ai/release-integration-sdk-go=${replace-with-local-path-to-release-integration-sdk-go}
After you run the command, the go.mod file should include a replace directive.
module github.com/digital-ai/release-argocd-integration
go 1.18
replace github.com/digital-ai/release-integration-sdk-go => /Users/user/dev/release-integration-sdk-go
Run the go mod tidy command to synchronize the github.com/digital-ai/release-integration-sdk-go module's dependencies.
The go.mod file:
…
require (
…
github.com/digital-ai/release-integration-sdk-go v0.0.0-00010101000000-000000000000
…
)
You can now test plugins with the local version of release-integration-sdk-go.