Skip to content

Conversation

@come-nc
Copy link
Collaborator

@come-nc come-nc commented Sep 1, 2022

Fix #414

Signed-off-by: Côme Chilliet [email protected]

@come-nc come-nc self-assigned this Sep 1, 2022
@come-nc come-nc force-pushed the fix/add-workflow-updater-phar branch 4 times, most recently from ea3b1fb to 47d6b27 Compare September 1, 2022 10:02
@come-nc
Copy link
Collaborator Author

come-nc commented Sep 1, 2022

Hum this is hard.
The phar build creates a lib/Version.php file which contain a version created with git describe --tags
This returns an empty string when run from the CI it seems, so the phar content always differs on lib/Version.php size, and total phar size.
So, I had to filter out both Version.php and global size from the diff.

Still better than nothing I suppose.

Had to exclude from diff:
- Signature which always differs
- lib/Version.php which depends upon git describe and is shorter in CI
- Content: line which contains global size, which depends upon lib/Version.php size

Signed-off-by: Côme Chilliet <[email protected]>
@come-nc come-nc force-pushed the fix/add-workflow-updater-phar branch from 47d6b27 to b190d12 Compare September 1, 2022 10:05
@come-nc come-nc requested a review from blizzz September 1, 2022 10:07
@blizzz
Copy link
Member

blizzz commented Sep 1, 2022

Hum this is hard. The phar build creates a lib/Version.php file which contain a version created with git describe --tags This returns an empty string when run from the CI it seems, so the phar content always differs on lib/Version.php size, and total phar size. So, I had to filter out both Version.php and global size from the diff.

Still better than nothing I suppose.

Aye, this behaviour is unfortunate. Good that you found a way around it!

@blizzz blizzz merged commit e7915bc into master Sep 1, 2022
@blizzz blizzz deleted the fix/add-workflow-updater-phar branch September 1, 2022 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add workflow check to verify updater.phar is up to date on a PR

3 participants