Skip to content

[hotfix] Fix post-release japicmp update script for macOS#26182

Merged
afedulov merged 1 commit into
apache:release-1.19from
afedulov:release-1.19-sed
Feb 20, 2025
Merged

[hotfix] Fix post-release japicmp update script for macOS#26182
afedulov merged 1 commit into
apache:release-1.19from
afedulov:release-1.19-sed

Conversation

@afedulov
Copy link
Copy Markdown
Contributor

@afedulov afedulov commented Feb 20, 2025

Mac uses BSD sed that requires an explicit extension for -i option. This works universally for both GNU and BSD sed.
I believe it previously caused issues with @PublicEvolving javacmp exclusions not being correctly removed after the release which led to incompatible changes being merged. Without the fix, the pom file gets modified incompletely, with an error message that is easy to miss
sed: 1: "../pom.xml": invalid command code .

Note: to reproduce current erroneous behavior, put a couple of lines between the MARKER: comments in pom.xml

@afedulov afedulov changed the title [hotfix] Fix post-release japicmp updates script for macOS [hotfix] Fix post-release japicmp update script for macOS Feb 20, 2025
Mac uses BSD sed that requires an explicit extension for -i option. This
works universally for both GNU and BSD sed.
@flinkbot
Copy link
Copy Markdown
Collaborator

flinkbot commented Feb 20, 2025

CI report:

Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

@mbalassi mbalassi self-requested a review February 20, 2025 12:40
@afedulov afedulov merged commit afaafa2 into apache:release-1.19 Feb 20, 2025
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.

3 participants