Skip to content
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

[Build] Make staging of relevant files robust against file absence #2403

Conversation

HannesWell
Copy link
Member

@HannesWell HannesWell commented Sep 28, 2024

Stage the relevant kind of files in isolation and don't fail if that kind of file does not exist at all in the repository.

Otherwise the entire step fails if the repo for example doesn't contain a feature.xml, because the previous 'git add' command then fails with:
fatal: pathspec '*/feature.xml' did not match any files

This became relevant for example in eclipse-jdt/eclipse.jdt.debug#516

Follow-up on #2352.

Stage the relevant kind of files in isolation and don't fail if that
kind of file does not exist at all in the repository.

Otherwise the entire step fails if the repo for example doesn't contain
a feature.xml, because the previous 'git add' command then fails with:

fatal: pathspec '*/feature.xml' did not match any files
@HannesWell
Copy link
Member Author

Tested with eclipse-jdt/eclipse.jdt.debug#516 and it worked as expected.

@HannesWell HannesWell merged commit 6b88971 into eclipse-platform:master Sep 28, 2024
3 of 4 checks passed
@HannesWell HannesWell deleted the robust-file-statging-in-version-increment branch September 28, 2024 13:28
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.

1 participant