Skip to content

Testing local changes

Marin Milina edited this page May 8, 2023 · 5 revisions

Testing local SDK changes in plugin projects

Follow this instructions to quickly test the local development version of release-integration-sdk-go with plugin projects.

Editing go.mod file

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.

Clone this wiki locally