Skip to content

fix: remove unused --platform flag#25

Merged
azu merged 2 commits intomainfrom
feature/remove-unused-platform-flag
Apr 3, 2026
Merged

fix: remove unused --platform flag#25
azu merged 2 commits intomainfrom
feature/remove-unused-platform-flag

Conversation

@azu
Copy link
Copy Markdown
Owner

@azu azu commented Apr 3, 2026

Summary

Remove the unused --platform flag from the run command. The flag variable runPlatform was declared and registered but never referenced in the command logic.

Changes

  • Remove runPlatform variable declaration from cmd/pin.go
  • Remove --platform flag registration from init()
  • Fix whitespace alignment of remaining variable declarations

Breaking Changes

None. The --platform flag was not functional, so removing it has no effect on existing usage.

Test Plan

  • Run dockerfile-pin run --help and confirm --platform is no longer listed
  • Run dockerfile-pin run -f <Dockerfile> and confirm normal behavior is unchanged

The --platform flag was declared but never used in the run command logic.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@azu azu merged commit 68e0532 into main Apr 3, 2026
3 checks passed
@azu azu deleted the feature/remove-unused-platform-flag branch April 3, 2026 00:23
@azu azu added the Type: Maintenance Repository Maintenance label Apr 3, 2026
@github-actions github-actions Bot mentioned this pull request Apr 3, 2026
azu pushed a commit that referenced this pull request Apr 3, 2026
<!-- Release notes generated using configuration in .github/release.yml
at main -->

## What's Changed
### Features
* feat: Add support for pinning Docker images in GitHub Actions files by
@azu in #27
### Maintenance
* fix: remove unused --platform flag by @azu in
#25


**Full Changelog**:
v1.0.5...v1.1.0

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Maintenance Repository Maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant