Skip to content

Fixed dotfile mv in pkg-build-deb picking up . and .. - #2164

Merged
larsewi merged 1 commit into
cfengine:masterfrom
larsewi:cannot-move
Apr 17, 2026
Merged

Fixed dotfile mv in pkg-build-deb picking up . and ..#2164
larsewi merged 1 commit into
cfengine:masterfrom
larsewi:cannot-move

Conversation

@larsewi

@larsewi larsewi commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The glob pattern .* in pkg-build-deb matches . and .., causing spurious warnings during tarball extraction in dependency packaging
  • The || true prevented the script from failing, but the warnings are noisy and confusing
  • Replaced with a loop that skips . and ..

🤖 Generated with Claude Code

The glob pattern `.*` matches `.` and `..`, causing spurious
warnings during tarball extraction. The `|| true` prevented the
script from failing, but the warnings are noisy and confusing.
Replaced with a loop that skips these special directory entries.

Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi
larsewi requested a review from craigcomstock April 8, 2026 19:09
@larsewi

larsewi commented Apr 13, 2026

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@olehermanse

Copy link
Copy Markdown
Member

@cf-bottom Please test this again in Jenkins :)

@cf-bottom

Copy link
Copy Markdown

mv $TD/*/.* $PKGDIR || true
# Also move dot files (.gitignore, etc.), skipping . and ..
for _dotfile in $TD/*/.*; do
case "${_dotfile##*/}" in

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interestingly, how is this bash expression different than basename? Using basename might be more immediately understandable to more folks.

@craigcomstock

Copy link
Copy Markdown
Contributor

rhel 🔴 is a fluke: here is a retry: Build Status

@larsewi
larsewi merged commit 9fff4e7 into cfengine:master Apr 17, 2026
35 of 36 checks passed
@larsewi
larsewi deleted the cannot-move branch April 27, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants