[GH-ISSUE #446] git command not installed (image=node:12.6-buster-slim) #311

Closed
opened 2026-03-01 21:42:16 +03:00 by kerem · 2 comments
Owner

Originally created by @broofa on GitHub (Dec 12, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/446

Hi, I'm new to github actions generally, and act specifically (great tool btw, thanks!), so this may be an issue in my understanding or setup.

Briefly, my script appears to be failing due to git not being installed in the node:12.6-buster-slim image act is using. While running npm install command it errors out with "Error while executing: undefined ls-remote ...", which is pretty clearly an attempt to run a git command.

Furthermore, if I shell into the container and do apt-get update && apt-get install git, the npm install command will succeed.

$ act
[Common UI Build/build] 🚀  Start image=node:12.6-buster-slim
[Common UI Build/build]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Common UI Build/build]   🐳  docker cp src=/Users/kieffer/tend/code/common/. dst=/github/workspace
[Common UI Build/build] ⭐  Run Checkout repo
[Common UI Build/build]   ✅  Success - Checkout repo
[Common UI Build/build] ⭐  Run Install Node
[Common UI Build/build]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v1
[Common UI Build/build]   🐳  docker cp src=/Users/kieffer/.cache/act/actions-setup-node@v1 dst=/actions/
[Common UI Build/build]   💬  ::debug::isExplicit:
[Common UI Build/build]   💬  ::debug::explicit? false
[Common UI Build/build]   💬  ::debug::evaluating 0 versions
[Common UI Build/build]   💬  ::debug::match not found
[Common UI Build/build]   💬  ::debug::evaluating 427 versions
[Common UI Build/build]   💬  ::debug::matched: v12.20.0
[Common UI Build/build]   💬  ::debug::isExplicit: 12.20.0
[Common UI Build/build]   💬  ::debug::explicit? true
[Common UI Build/build]   💬  ::debug::checking cache: /opt/hostedtoolcache/node/12.20.0/x64
[Common UI Build/build]   💬  ::debug::not found
[Common UI Build/build]   💬  ::debug::Downloading https://nodejs.org/dist/v12.20.0/node-v12.20.0-linux-x64.tar.gz
[Common UI Build/build]   💬  ::debug::Destination /tmp/35fa14c0-f6b8-41da-8aad-aa6a5eac1865
[Common UI Build/build]   💬  ::debug::download complete
[Common UI Build/build]   💬  ::debug::Checking tar --version
[Common UI Build/build]   💬  ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason.
| [command]/bin/tar xz --warning=no-unknown-keyword -C /tmp/6ce93b3f-5a40-4767-96eb-1d7eb84dbb19 -f /tmp/35fa14c0-f6b8-41da-8aad-aa6a5eac1865
[Common UI Build/build]   💬  ::debug::Caching tool node 12.20.0 x64
[Common UI Build/build]   💬  ::debug::source dir: /tmp/6ce93b3f-5a40-4767-96eb-1d7eb84dbb19/node-v12.20.0-linux-x64
[Common UI Build/build]   💬  ::debug::destination /opt/hostedtoolcache/node/12.20.0/x64
[Common UI Build/build]   💬  ::debug::finished caching tool
[Common UI Build/build]   ⚙  ::add-path:: /opt/hostedtoolcache/node/12.20.0/x64/bin
| [command]/opt/hostedtoolcache/node/12.20.0/x64/bin/node --version
| v12.20.0
| [command]/opt/hostedtoolcache/node/12.20.0/x64/bin/npm --version
| 6.14.8
[Common UI Build/build]   ❓  ##[add-matcher]/actions/actions-setup-node@v1/.github/tsc.json
[Common UI Build/build]   ❓  ##[add-matcher]/actions/actions-setup-node@v1/.github/eslint-stylish.json
[Common UI Build/build]   ❓  ##[add-matcher]/actions/actions-setup-node@v1/.github/eslint-compact.json
[Common UI Build/build]   ✅  Success - Install Node
[Common UI Build/build] ⭐  Run Create /build for production
|
| > @tend/common@17.5.0 build /github/workspace
| > cd ui && npm install && npm run build
|
| npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
| npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
| npm WARN deprecated eslint-loader@3.0.3: This loader has been deprecated. Please use eslint-webpack-plugin
| npm WARN deprecated fsevents@2.1.2: Please update to latest version
| npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
| npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
| npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
| npm WARN deprecated har-validator@5.1.5: this library is no longer supported
| npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
| npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
| npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
| npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
| npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi'
| npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address'
| npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained
| npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained
| npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained
| npm WARN deprecated core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
| npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
| npm ERR! code ENOENT
| npm ERR! syscall spawn git
| npm ERR! path git
| npm ERR! errno ENOENT
| npm ERR! enoent Error while executing:
| npm ERR! enoent undefined ls-remote -h -t https://***:***@github.com/TendInc/common.git
| npm ERR! enoent
| npm ERR! enoent
| npm ERR! enoent spawn git ENOENT
| npm ERR! enoent This is related to npm not being able to find a file.
| npm ERR! enoent
|
| npm ERR! A complete log of this run can be found in:
| npm ERR!     /github/home/.npm/_logs/2020-12-12T14_52_24_107Z-debug.log
| npm ERR! code ELIFECYCLE
| npm ERR! errno 1

| npm ERR! @tend/common@17.5.0 build: `cd ui && npm install && npm run build`
| npm ERR! Exit status 1
| npm ERR!
| npm ERR! Failed at the @tend/common@17.5.0 build script.
| npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
| npm WARN Local package.json exists, but node_modules missing, did you mean to install?
|
| npm ERR! A complete log of this run can be found in:
| npm ERR!     /github/home/.npm/_logs/2020-12-12T14_52_24_192Z-debug.log
[Common UI Build/build]   ❌  Failure - Create /build for production
Error: exit with `FAILURE`: 1
Originally created by @broofa on GitHub (Dec 12, 2020). Original GitHub issue: https://github.com/nektos/act/issues/446 Hi, I'm new to github actions generally, and `act` specifically (great tool btw, thanks!), so this may be an issue in my understanding or setup. Briefly, my script appears to be failing due to `git` not being installed in the `node:12.6-buster-slim` image `act` is using. While running `npm install` command it errors out with "`Error while executing: undefined ls-remote ...`", which is pretty clearly an attempt to run a git command. Furthermore, if I shell into the container and do `apt-get update && apt-get install git`, the `npm install` command will succeed. ``` $ act [Common UI Build/build] 🚀 Start image=node:12.6-buster-slim [Common UI Build/build] 🐳 docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Common UI Build/build] 🐳 docker cp src=/Users/kieffer/tend/code/common/. dst=/github/workspace [Common UI Build/build] ⭐ Run Checkout repo [Common UI Build/build] ✅ Success - Checkout repo [Common UI Build/build] ⭐ Run Install Node [Common UI Build/build] ☁ git clone 'https://github.com/actions/setup-node' # ref=v1 [Common UI Build/build] 🐳 docker cp src=/Users/kieffer/.cache/act/actions-setup-node@v1 dst=/actions/ [Common UI Build/build] 💬 ::debug::isExplicit: [Common UI Build/build] 💬 ::debug::explicit? false [Common UI Build/build] 💬 ::debug::evaluating 0 versions [Common UI Build/build] 💬 ::debug::match not found [Common UI Build/build] 💬 ::debug::evaluating 427 versions [Common UI Build/build] 💬 ::debug::matched: v12.20.0 [Common UI Build/build] 💬 ::debug::isExplicit: 12.20.0 [Common UI Build/build] 💬 ::debug::explicit? true [Common UI Build/build] 💬 ::debug::checking cache: /opt/hostedtoolcache/node/12.20.0/x64 [Common UI Build/build] 💬 ::debug::not found [Common UI Build/build] 💬 ::debug::Downloading https://nodejs.org/dist/v12.20.0/node-v12.20.0-linux-x64.tar.gz [Common UI Build/build] 💬 ::debug::Destination /tmp/35fa14c0-f6b8-41da-8aad-aa6a5eac1865 [Common UI Build/build] 💬 ::debug::download complete [Common UI Build/build] 💬 ::debug::Checking tar --version [Common UI Build/build] 💬 ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason. | [command]/bin/tar xz --warning=no-unknown-keyword -C /tmp/6ce93b3f-5a40-4767-96eb-1d7eb84dbb19 -f /tmp/35fa14c0-f6b8-41da-8aad-aa6a5eac1865 [Common UI Build/build] 💬 ::debug::Caching tool node 12.20.0 x64 [Common UI Build/build] 💬 ::debug::source dir: /tmp/6ce93b3f-5a40-4767-96eb-1d7eb84dbb19/node-v12.20.0-linux-x64 [Common UI Build/build] 💬 ::debug::destination /opt/hostedtoolcache/node/12.20.0/x64 [Common UI Build/build] 💬 ::debug::finished caching tool [Common UI Build/build] ⚙ ::add-path:: /opt/hostedtoolcache/node/12.20.0/x64/bin | [command]/opt/hostedtoolcache/node/12.20.0/x64/bin/node --version | v12.20.0 | [command]/opt/hostedtoolcache/node/12.20.0/x64/bin/npm --version | 6.14.8 [Common UI Build/build] ❓ ##[add-matcher]/actions/actions-setup-node@v1/.github/tsc.json [Common UI Build/build] ❓ ##[add-matcher]/actions/actions-setup-node@v1/.github/eslint-stylish.json [Common UI Build/build] ❓ ##[add-matcher]/actions/actions-setup-node@v1/.github/eslint-compact.json [Common UI Build/build] ✅ Success - Install Node [Common UI Build/build] ⭐ Run Create /build for production | | > @tend/common@17.5.0 build /github/workspace | > cd ui && npm install && npm run build | | npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 | npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. | npm WARN deprecated eslint-loader@3.0.3: This loader has been deprecated. Please use eslint-webpack-plugin | npm WARN deprecated fsevents@2.1.2: Please update to latest version | npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated | npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. | npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797) | npm WARN deprecated har-validator@5.1.5: this library is no longer supported | npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 | npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated | npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. | npm WARN deprecated request-promise-native@1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142 | npm WARN deprecated @hapi/joi@15.1.1: Switch to 'npm install joi' | npm WARN deprecated @hapi/address@2.1.4: Moved to 'npm install @sideway/address' | npm WARN deprecated @hapi/bourne@1.3.2: This version has been deprecated and is no longer supported or maintained | npm WARN deprecated @hapi/hoek@8.5.1: This version has been deprecated and is no longer supported or maintained | npm WARN deprecated @hapi/topo@3.1.6: This version has been deprecated and is no longer supported or maintained | npm WARN deprecated core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3. | npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart() | npm ERR! code ENOENT | npm ERR! syscall spawn git | npm ERR! path git | npm ERR! errno ENOENT | npm ERR! enoent Error while executing: | npm ERR! enoent undefined ls-remote -h -t https://***:***@github.com/TendInc/common.git | npm ERR! enoent | npm ERR! enoent | npm ERR! enoent spawn git ENOENT | npm ERR! enoent This is related to npm not being able to find a file. | npm ERR! enoent | | npm ERR! A complete log of this run can be found in: | npm ERR! /github/home/.npm/_logs/2020-12-12T14_52_24_107Z-debug.log | npm ERR! code ELIFECYCLE | npm ERR! errno 1 | npm ERR! @tend/common@17.5.0 build: `cd ui && npm install && npm run build` | npm ERR! Exit status 1 | npm ERR! | npm ERR! Failed at the @tend/common@17.5.0 build script. | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. | npm WARN Local package.json exists, but node_modules missing, did you mean to install? | | npm ERR! A complete log of this run can be found in: | npm ERR! /github/home/.npm/_logs/2020-12-12T14_52_24_192Z-debug.log [Common UI Build/build] ❌ Failure - Create /build for production Error: exit with `FAILURE`: 1 ```
kerem 2026-03-01 21:42:16 +03:00
  • closed this issue
  • added the
    stale
    label
Author
Owner

@catthehacker commented on GitHub (Dec 12, 2020):

Duplicate of https://github.com/nektos/act/issues/107

<!-- gh-comment-id:743782503 --> @catthehacker commented on GitHub (Dec 12, 2020): Duplicate of https://github.com/nektos/act/issues/107
Author
Owner

@github-actions[bot] commented on GitHub (Jan 16, 2021):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:761279512 --> @github-actions[bot] commented on GitHub (Jan 16, 2021): Issue is stale and will be closed in 14 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#311
No description provided.