zmoog / public-notes

Apache License 2.0
0 stars 1 forks source link

Use an unreleased version of elastic-package #48

Open zmoog opened 10 months ago

zmoog commented 10 months ago

I am working on a PR that needs an unreleased version of elastic-package that contains a new feature.

How can I set up an integration to use an arbitrary version of elastic-package?

zmoog commented 10 months ago

It seems the integrations repo uses the elastic-package version referenced in the go.mod file.

Here's how to switch to elastic-package@main:

go mod edit -replace github.com/elastic/elastic-package=github.com/elastic/elastic-package@main && go mod tidy

Replace main with a different ref if you want a different version or commit.