You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2026/04/25 18:32:33 UTC
(grails-core) 01/01: fix(ci): restore executable bit on grailsw before verify
This is an automated email from the ASF dual-hosted git repository.
jamesfredley pushed a commit to branch fix/wrapper-verify-executable-bit
in repository https://gitbox.apache.org/repos/asf/grails-core.git
commit 7e353f63cc84027471aff6cdd68b49f1589d4667
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Sat Apr 25 14:31:59 2026 -0400
fix(ci): restore executable bit on grailsw before verify
The verifyWrapper job downloads the wrapper distribution as a GitHub
Actions artifact and then invokes ./wrapper/grailsw.
actions/download-artifact does not preserve the Unix executable bit,
so the script fails with "Permission denied" (exit code 126). Restore
the bit with chmod +x before invocation.
See https://github.com/apache/grails-core/actions/runs/24933507519/job/73020232978
Assisted-by: claude-code:claude-opus-4-7
---
.github/workflows/gradle.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index 934683f0ed..f08fb9ebf2 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -474,6 +474,9 @@ jobs:
# globally latest SNAPSHOT in the Apache repo, which may be compiled
# for a newer Java runtime than this job's JDK.
export PREFERRED_GRAILS_VERSION=$(grep '^projectVersion=' gradle.properties | cut -d'=' -f2)
+ # actions/download-artifact does not preserve the executable bit, so
+ # restore it before invoking the wrapper script (see actions/upload-artifact#38).
+ chmod +x ./wrapper/grailsw
./wrapper/grailsw --version
docs:
if: github.repository_owner == 'apache' && github.event_name == 'push'