Skip to content

Fix git pkg build sudo regression - #345

Merged
Lukas-Heiligenbrunner merged 2 commits into
masterfrom
fix-chmod-in-git-build
Apr 29, 2026
Merged

Fix git pkg build sudo regression#345
Lukas-Heiligenbrunner merged 2 commits into
masterfrom
fix-chmod-in-git-build

Conversation

@Lukas-Heiligenbrunner

Copy link
Copy Markdown
Owner

Fix regression caused by #214

When adding a custom Git repo subdirectory to build the directory is chmodded before build which requires sudo rights:

Pulling image: ghcr.io/lukas-heiligenbrunner/aurcache-builder:latestchmod: changing permissions of '/tmp': Operation not permitted
chmod: changing permissions of '/tmp/flutter.sh': Operation not permitted
chmod: changing permissions of '/tmp/no-runtime-download.patch': Operation not permitted
chmod: changing permissions of '/tmp/update-artifact-versions.sh': Operation not permitted
chmod: changing permissions of '/tmp/doctor.patch': Operation not permitted
chmod: changing permissions of '/tmp/gradle-user-home.patch': Operation not permitted
chmod: changing permissions of '/tmp/PKGBUILD': Operation not permitted
chmod: changing permissions of '/tmp/.gitignore': Operation not permitted
chmod: changing permissions of '/tmp/opt-in-analytics.patch': Operation not permitted
chmod: changing permissions of '/tmp/.SRCINFO': Operation not permitted
chmod: changing permissions of '/tmp/version.patch': Operation not permitted
chmod: changing permissions of '/tmp/system-dart.patch': Operation not permitted
chmod: changing permissions of '/tmp/flutter-common.install': Operation not permitted
chmod: changing permissions of '/tmp/no-lock.patch': Operation not permitted
failed to build packageDocker container wait error: 

this readds the sudo before the chmod which was deleted in #214

@Lukas-Heiligenbrunner Lukas-Heiligenbrunner changed the title use sudo to chmod git repo dir before build Fix git pkg build sudo regression Apr 29, 2026
…nto this directory and there are no subdirectories
@Lukas-Heiligenbrunner

Copy link
Copy Markdown
Owner Author

@gyscos with this change it seems to work fine again. Was there any other intention in this change i am missing?

@gyscos

gyscos commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Oh sorry I didn't realize I changed that. I did not actually test git repos yet, my bad...

@Lukas-Heiligenbrunner

Copy link
Copy Markdown
Owner Author

Ok, i see. No problem!

@Lukas-Heiligenbrunner
Lukas-Heiligenbrunner merged commit 2182304 into master Apr 29, 2026
8 checks passed
@Lukas-Heiligenbrunner
Lukas-Heiligenbrunner deleted the fix-chmod-in-git-build branch April 29, 2026 18:34
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.

2 participants