-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binary in Docker Image for 0.58.0
reports version 0.57.1
#5966
Comments
It seems the same off-by-one-version issue is happening for
|
The Release GH Action reports the following inputs:
I believe that commit is too early. Looking at the history from the release commit (fcd437443), the version number was updated in commit (0c7d0098), which follows the one this build used (a86ab8d5).
|
Looking a little more at this, I realize that the workflow accounts for this:
So that seems to explain what I saw above. And it looks like the Docker image job checks out the branch with the new commit. |
I finally got it fixed. Thank you for the report and the analysis! Turns out, the Docker build action doesn't care for the local repository being checked out. It builds the state of the repository the initial release action was started on. That was always the latest commit on The fix is actually easy: You add Long story short, 0.58.2 is finally available and it even reports the correct version. Please have a try. |
New Issue Checklist
Bug Description
The
swiftlint
binary in the0.58.0
docker image reports that it is version0.57.1
. Note that I am running this on Apple Silicon, hence the--platform
option in thedocker run
command below. However, we also see the same thing in CI, which runs onlinux/amd64
.Apple Silicon
Since we specify
swiftlint_version: 0.58.0
in our.swiftlint.yml
, this causes SwiftLint to exit with a warning:CI
[2025-01-15T18:51:29Z] Status: Downloaded newer image for ghcr.io/realm/swiftlint:0.58.0 [2025-01-15T18:51:30Z] warning: Currently running SwiftLint 0.57.1 but configuration specified version 0.58.0.
Environment
swiftlint version
to be sure):swiftlint version
reports0.57.1
. But thedocker run
invocation specifies0.58.0
xcodebuild -version
to be sure): Xcode 16.2 (16C5032a)The text was updated successfully, but these errors were encountered: