GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — plumbing: object, Isolate tests from host git config. by cedric-appdirect · Pull Request #2122 · go-git/go-git Conversation
Contributor
Tests that create in-memory repositories and commit via the top-level git.Init/Worktree.Commit API inherit the host global git config through the NewAuto() ConfigLoader plugin. When a developer has commit.gpgSign=true, these tests fail because no ObjectSigner plugin is registered. Add TestMain to plumbing/object and x/plumbing/worktree that replaces NewAuto() with a static config, mirroring the existing pattern in the root git package. Assisted-by:i Cursor with Claude Opus 4.6 [email protected]
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
cedric-appdirect
force-pushed
the
fix-local-test-with-gpgsign
branch
from
17852b5 to
2282d86
Compare
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
pjbgf
requested changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd agree with @AriehSchneier. We actually already call this in a few locations, let's create a new
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
cedric-appdirect
force-pushed
the
fix-local-test-with-gpgsign
branch
2 times, most recently
from
8ff8bfb to
f65c73b
Compare
cedric-appdirect
added a commit
to cedric-appdirect/go-git
that referenced
this pull request
Move the static ConfigLoader registration into internal/test/config so every package that needs isolation from the host git config can call a single shared helper instead of duplicating the go:linkname and plugin.Register boilerplate. Addresses review feedback from @AriehSchneier and @pjbgf on PR go-git#2122. Assisted-by: Claude Sonnet 4.6 <[email protected]> Co-authored-by: Cursor <[email protected]>
cedric-appdirect
force-pushed
the
fix-local-test-with-gpgsign
branch
from
f65c73b to
d8b2cbf
Compare
cedric-appdirect
added a commit
to cedric-appdirect/go-git
that referenced
this pull request
Move the static ConfigLoader registration into internal/test/config so every package that needs isolation from the host git config can call a single shared helper instead of duplicating the go:linkname and plugin.Register boilerplate. Addresses review feedback from @AriehSchneier and @pjbgf on PR go-git#2122. Assisted-by: Claude Sonnet 4.6 <[email protected]> Co-authored-by: Cursor <[email protected]>
cedric-appdirect
added a commit
to cedric-appdirect/go-git
that referenced
this pull request
Move the static ConfigLoader registration into internal/test/config so every package that needs isolation from the host git config can call a single shared helper instead of duplicating the go:linkname and plugin.Register boilerplate. Addresses review feedback from @AriehSchneier and @pjbgf on PR go-git#2122. Assisted-by: Cursor with Claude Sonnet 4.6 <[email protected]> Signed-off-by: Cedric BAIL <[email protected]>
cedric-appdirect
force-pushed
the
fix-local-test-with-gpgsign
branch
from
d8b2cbf to
099bb51
Compare
cedric-appdirect
added a commit
to cedric-appdirect/go-git
that referenced
this pull request
Move the static ConfigLoader registration into internal/test/config so every package that needs isolation from the host git config can call a single shared helper instead of duplicating the go:linkname and plugin.Register boilerplate. Addresses review feedback from @AriehSchneier and @pjbgf on PR go-git#2122. Assisted-by: Cursor with Claude Sonnet 4.6 <[email protected]> Signed-off-by: Cedric BAIL <[email protected]>
cedric-appdirect
force-pushed
the
fix-local-test-with-gpgsign
branch
from
099bb51 to
e69df9b
Compare
cedric-appdirect
added a commit
to cedric-appdirect/go-git
that referenced
this pull request
Move the static ConfigLoader registration into internal/test/config so every package that needs isolation from the host git config can call a single shared helper instead of duplicating the go:linkname and plugin.Register boilerplate. Addresses review feedback from @AriehSchneier and @pjbgf on PR go-git#2122. Assisted-by: Cursor with Claude Sonnet 4.6 <[email protected]> Signed-off-by: Cedric BAIL <[email protected]>
cedric-appdirect
force-pushed
the
fix-local-test-with-gpgsign
branch
2 times, most recently
from
03c95d7 to
3c71676
Compare
cedric-appdirect
added a commit
to cedric-appdirect/go-git
that referenced
this pull request
Move the static ConfigLoader registration into internal/test/config so every package that needs isolation from the host git config can call a single shared helper instead of duplicating the go:linkname and plugin.Register boilerplate. Addresses review feedback from @AriehSchneier and @pjbgf on PR go-git#2122. Assisted-by: Cursor with Claude Sonnet 4.6 <[email protected]> Signed-off-by: Cedric BAIL <[email protected]> Tests that create in-memory repositories and commit via the top-level git.Init/Worktree.Commit API inherit the host global git config through the NewAuto() ConfigLoader plugin. When a developer has commit.gpgSign=true, these tests fail because no ObjectSigner plugin is registered. Add TestMain to plumbing/object and x/plumbing/worktree that replaces NewAuto() with a static config, mirroring the existing pattern in the root git package. Assisted-by:i Cursor with Claude Opus 4.6 <[email protected]> Signed-off-by: Cedric BAIL <[email protected]> Move the static ConfigLoader registration into internal/test/config so every package that needs isolation from the host git config can call a single shared helper instead of duplicating the go:linkname and plugin.Register boilerplate. Addresses review feedback from @AriehSchneier and @pjbgf on PR go-git#2122. Assisted-by: Cursor with Claude Sonnet 4.6 <[email protected]> Signed-off-by: Cedric BAIL <[email protected]>
pjbgf
force-pushed
the
fix-local-test-with-gpgsign
branch
from
3c71676 to
6109f8f
Compare
pjbgf
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cedric-appdirect thanks for improving our test harness! 🙇
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |