Skip to content

Conversation

Copy link

Copilot AI commented Nov 14, 2025

Replaces the external github.com/google/go-containerregistry dependency with a local fork to enable independent modifications.

Changes

  • Added submodule: third_party/go-containerregistry at v0.20.6 (commit 59a4b859)
  • go.mod: Added replace directive pointing to local fork
  • go.sum: Removed remote package checksums

Implementation

The Go module replace directive transparently redirects all imports:

// In go.mod
replace github.com/google/go-containerregistry => ./third_party/go-containerregistry

No code changes required - 38 files importing github.com/google/go-containerregistry/* now use the local fork without modification.

Original prompt

We need to fork go-containerregistry in this codebase, we will need to alter it in future, we should not use this version anywhere:
github.com/google/go-containerregistry


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fork go-containerregistry for future modifications Fork go-containerregistry as local submodule Nov 14, 2025
Copilot AI requested a review from ericcurtin November 14, 2025 12:42
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.

2 participants