Skip to content

Extract acquire into a standalone module for reuse outside acceptance tests - #975

Open
plorenz wants to merge 2 commits into
mainfrom
extract-acquire-module
Open

Extract acquire into a standalone module for reuse outside acceptance tests#975
plorenz wants to merge 2 commits into
mainfrom
extract-acquire-module

Conversation

@plorenz

@plorenz plorenz commented Jul 20, 2026

Copy link
Copy Markdown
Member
  • moves the acquire package from acceptance/internal/acquire into a new
    github.com/openziti/sdk-golang/acquire module with its own go.mod/go.sum
  • updates the acceptance harness and matrix command to import the new path
  • adds a require plus in-repo replace for the acquire module to acceptance
  • relocates the checked-in versions.yaml validation test into the acceptance
    harness package, locating the file via FindVersionsFile instead of a fixed path
  • refreshes the package doc to describe the general-purpose, caller-parameterized surface

… tests

- moves the acquire package from acceptance/internal/acquire into a new
  github.com/openziti/sdk-golang/acquire module with its own go.mod/go.sum
- updates the acceptance harness and matrix command to import the new path
- adds a require plus in-repo replace for the acquire module to acceptance
- relocates the checked-in versions.yaml validation test into the acceptance
  harness package, locating the file via FindVersionsFile instead of a fixed path
- refreshes the package doc to describe the general-purpose, caller-parameterized surface
@plorenz
plorenz requested a review from a team as a code owner July 20, 2026 14:42
- adds a WithVersion functional option that stamps common/version Version and
  Revision via -ldflags when building a git-ref selector from source, so the
  binary reports a real version instead of the unstamped dev default
- derives the version package linker path from the checked-out go.mod, so both
  the v1 and v2 ziti module lines are handled
- keys the build cache and the memoization entry per stamped version, so
  differing stamps of the same commit do not collide
- adds unit tests for the cache-key suffix and ldflags derivation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant