-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade module version to v2 #212
Upgrade module version to v2 #212
Conversation
@pbusko thanks for submitting this. Assuming we want to support However, I didn't know folks were consuming it as a library. I didn't think that was really part of our supported surface area. Can you help us understand how you are consuming |
82e8586
to
e0da385
Compare
Hi @robdimsdale, sorry for the delay in replying. We have found the test matchers package for integration tests, especially useful for testing stacks. Also, the link in the description doesn't really distinguish between CLI and non-CLI packages, it's rather an implementation detail of a module. |
Maybe we need to promote these matchers to |
e0da385
to
f1dea45
Compare
It appears that most of those matchers are being used internally for integration testing. Do we think that they should be exposed? |
Yeah, that's my thinking too. If there are matchers/test-helpers in @pbusko if we ensured all the test matchers were present in occam would that be sufficient for you? Are there are other aspects of |
No, there's nothing else we would like to consume as a library. Moving matchers to occam sounds reasonable to me. But I'd recommend to follow the go.mod versioning scheme, since it breaks not only the library consumption, but also installtion. For example: $ go install github.com/paketo-buildpacks/jam@v2.1.0 1
go: github.com/paketo-buildpacks/jam@v2.1.0: github.com/paketo-buildpacks/jam@v2.1.0: invalid version: module contains a go.mod file, so module path must match major version ("github.com/paketo-buildpacks/jam/v2") |
f78ea4a
to
4b470d9
Compare
Ok, that sounds reasonable. We provide pre-built binaries for major platforms/architectures, and you can always Plus, if we merge this PR and support I created paketo-buildpacks/occam#217 to capture the work to move the test helpers. I'm inclined to merge this PR. It's more correct in that it enables standard go workflows (i.e. |
as far as versioning, I'm inclined to call it a |
4b470d9
to
f29abf0
Compare
f29abf0
to
2af9cf9
Compare
Summary
According to https://go.dev/blog/v2-go-modules:
Use Cases
Currently it's impossible to import the latest
jam
version as a dependency:Checklist