fix: recover release snapshot state#31
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
gradle.propertiesto the next snapshot: setversion=0.1.35-SNAPSHOTto recover the repository from a stale release state.Verify snapshot versionto.github/workflows/release.ymlthat checksgradle.propertiescontains a-SNAPSHOTversion and fails with a clear Actions error if it does not../gradlew release -Prelease.useAutomaticVersion=true) unchanged and only gate it behind the new snapshot verification.Testing
git diff --checkand verified there were no whitespace/patch errors (passed).version="$(sed -n 's/^version=//p' gradle.properties)"to confirm the currentgradle.propertiespasses the new check (passed).version=0.1.34and confirmed the guard rejects it (passed).YAML.load_file) to confirm theVerify snapshot versionstep exists and is syntactically valid (passed)../gradlew --versionin the local environment failed because thegradle/wrapper/gradle-wrapper.jaris stored via Git LFS and the LFS object is not available locally, and a local Gradle invocation failed to resolve a plugin artifact due to environment/network restrictions (environmental limitation documented).Codex Task