-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
The following step fails on self hosted runners in subsequent runs:
Lines 101 to 103 in 8aace34
| await exec.exec(`git clone --branch ${repo.branch} --single-branch ${repo.url}`, undefined, { | |
| cwd: buildPath | |
| }) |
Gives the following error message:
Notice: gh-actions-lua: No cache available, clean build
/usr/bin/git clone --branch v2.1 --single-branch https://github.com/luajit/luajit.git
fatal: destination path 'luajit' already exists and is not an empty directory.
This happens when the repo was already cloned in a previous run and is still in the runner temp directory.
It seems like the folder given by the following should be deleted if it exists just before the GIT clone step:
path.join(process.env["RUNNER_TEMP"], BUILD_PREFIX, baseDir)
Metadata
Metadata
Assignees
Labels
No labels