Skip to content

Possible lint fix for platform.go#427

Merged
mtrmac merged 1 commit into
podman-container-tools:mainfrom
TomSweeneyRedHat:dev/tsweeney/lintfix
Oct 31, 2025
Merged

Possible lint fix for platform.go#427
mtrmac merged 1 commit into
podman-container-tools:mainfrom
TomSweeneyRedHat:dev/tsweeney/lintfix

Conversation

@TomSweeneyRedHat

Copy link
Copy Markdown
Contributor

This PR: #425 was barking about deprecation notices not being properly setup. I think this cures it. I just made the "Deprecation" comment be the leading line of the comment.

@github-actions github-actions Bot added the common Related to "common" package label Oct 30, 2025
podmanbot pushed a commit to podmanbot/buildah that referenced this pull request Oct 30, 2025
@podmanbot

Copy link
Copy Markdown

✅ A new PR has been created in buildah to vendor these changes: podman-container-tools/buildah#6462

@packit-as-a-service

Copy link
Copy Markdown

Packit jobs failed. @containers/packit-build please check.

@mtrmac mtrmac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I agree this would fix the warning, but semantically that reads wrong — the primary documentation of the field is not a part of the deprecation message (and should not be included in linter/compiler output warning about the deprecation).

I think the right fix would be to add an empty comment line above the deprecation paragraph, e.g.

  // PlatformPolicy controls the behavior of image-platform matching.
+ //
  // Deprecated: new code should use define.PlatformPolicy directly.

@TomSweeneyRedHat

Copy link
Copy Markdown
Contributor Author

@mtrmac thanks for the suggestion, I'll give that a go.

podmanbot pushed a commit to podmanbot/buildah that referenced this pull request Oct 31, 2025
This PR: podman-container-tools#425 was
barking about deprecation notices not being properly setup.  I think
this cures it.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
podmanbot pushed a commit to podmanbot/buildah that referenced this pull request Oct 31, 2025

@mtrmac mtrmac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@mtrmac mtrmac merged commit 4ad2ce1 into podman-container-tools:main Oct 31, 2025
18 checks passed
@TomSweeneyRedHat TomSweeneyRedHat deleted the dev/tsweeney/lintfix branch November 14, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to "common" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants