Skip to content

makefile: add version variable quotes in git case - #1456

Merged
bynect merged 1 commit into
dunst-project:masterfrom
pslldq:versionbraces
Mar 10, 2025
Merged

makefile: add version variable quotes in git case#1456
bynect merged 1 commit into
dunst-project:masterfrom
pslldq:versionbraces

Conversation

@pslldq

@pslldq pslldq commented Mar 10, 2025

Copy link
Copy Markdown
Contributor

Add quotes to the VERSION variable, when they are determined by invoking git. git describe doesn't seem to output spaces. But the fallback case of just echoing the VERSION variable may contain spaces, as every release includes a space separated release date in the version variable.

This fixes the issue that if the .git directory is present on a release, but the git command isn't available or fails, the VERSION variable isn't escaped anymore and the release date contained causes a build failure.

Add quotes to the VERSION variable, when they are determined by invoking
git. While git describe doesn't seem to output spaces. But the fallback
case of just echoing the VERSION variable may contain spaces, as every
release includes a space separated release date in the version variable.

This fixes the issue that if the .git directory is present on a release,
but the git command isn't available or fails, the VERSION variable isn't
escaped anymore and the release date contained causes a build failure.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.57%. Comparing base (5b86352) to head (7ad5991).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1456      +/-   ##
==========================================
- Coverage   65.60%   65.57%   -0.03%     
==========================================
  Files          50       50              
  Lines        8910     8910              
  Branches     1044     1043       -1     
==========================================
- Hits         5845     5843       -2     
- Misses       3065     3067       +2     
Flag Coverage Δ
unittests 65.57% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bynect
bynect merged commit 7959b6d into dunst-project:master Mar 10, 2025
@pslldq
pslldq deleted the versionbraces branch March 10, 2025 15:49
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