Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Comments

fix(ci): use PACKAGE_NAME from workflow or debian/control#46

Merged
mairas merged 1 commit intomainfrom
fix/changelog-package-name
Nov 22, 2025
Merged

fix(ci): use PACKAGE_NAME from workflow or debian/control#46
mairas merged 1 commit intomainfrom
fix/changelog-package-name

Conversation

@mairas
Copy link
Contributor

@mairas mairas commented Nov 22, 2025

Summary

Fix the generate-changelog.sh script to use the correct package name.

Problem

The script had:

PACKAGE_NAME="halpi2-daemon"

This caused a mismatch with debian/control which uses halpid.

Solution

Use PACKAGE_NAME from the workflow environment, or read from debian/control:

if [ -z "${PACKAGE_NAME:-}" ]; then
    PACKAGE_NAME=$(grep "^Source:" debian/control | cut -d: -f2 | tr -d ' ')
fi

Test plan

  • CI build succeeds with correct package name

🤖 Generated with Claude Code

The generate-changelog.sh script had a hardcoded package name
"halpi2-daemon" instead of using the PACKAGE_NAME environment
variable from the workflow or reading it from debian/control.

This caused the generated debian/changelog to have a different
package name than debian/control, resulting in the error:
  dpkg-source: error: source package has two conflicting values

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@mairas mairas merged commit 92ac31e into main Nov 22, 2025
1 check passed
@mairas mairas deleted the fix/changelog-package-name branch November 22, 2025 10:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant