Skip to content

Remove unused internal package#13

Open
prasanna-anchorage wants to merge 1 commit into
mainfrom
chore/remove-unused-internal-package
Open

Remove unused internal package#13
prasanna-anchorage wants to merge 1 commit into
mainfrom
chore/remove-unused-internal-package

Conversation

@prasanna-anchorage

Copy link
Copy Markdown
Contributor

Summary

  • internal/constants.go was a stale duplicate of aws_root.go's root certificate PEM and fingerprint, left over from before the "Move code from internal/ to root package" refactor. Nothing imports github.com/anchorageoss/awsnitroverifier/internal.
  • Removed two stale comments in fixtures_test.go referring to "internal package tests" and a test "moved to internal package" — neither the internal test file nor that test exists.

Test plan

  • go build ./...
  • go vet ./...
  • go test ./... — 122 passed
  • Pre-commit hooks (dependency check, lint, tests) passed on commit

internal/constants.go was a stale duplicate of aws_root.go's root
certificate PEM and fingerprint, left over from before the "Move code
from internal/ to root package" refactor. Nothing imports
github.com/anchorageoss/awsnitroverifier/internal, and no test files
exist under internal/ despite comments in fixtures_test.go referring to
"internal package tests" and a test "moved to internal package" -
neither of which exist. Removed the package and the stale comments.
Copilot AI review requested due to automatic review settings July 14, 2026 20:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes a now-unused internal package artifact and cleans up outdated test comments left over from a prior refactor, reducing dead code and keeping test documentation accurate.

Changes:

  • Deleted internal/constants.go, which duplicated the embedded AWS Nitro root certificate PEM and fingerprint already present in aws_root.go.
  • Updated fixtures_test.go comments to remove references to non-existent “internal package tests” and a test purportedly moved to the internal package.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
internal/constants.go Removes a stale, duplicated internal constants file that is no longer referenced.
fixtures_test.go Removes outdated comments referencing internal-package tests that no longer exist.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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