Skip to content

Failed to find directory node/Β #49

@nick-parallelz

Description

@nick-parallelz

Have been using this repo in my Github Action for a while. Suddenly today it started breaking trying to find a missing directory (apparently some file path dependencies have changed).

Here is the snippet of my yml that breaks:

jobs:
  tests:
    runs-on: ubuntu-22.04
    steps:
    - name: Install emscripten
      uses: mymindstorm/setup-emsdk@6ab9eb1bda2574c4ddb79809fc9247783eaf9021 # v14
      with:
        version: 3.1.59

And this fails with the following error:

Resolving SDK version '3.1.59' to 'sdk-releases-e20ee09a8a740544c4bc6de5d4ba5f81f74b74d6-64bit'
Traceback (most recent call last):
  File "/home/runner/work/_temp/8cea6493-38d4-441a-899c-6fd569de9cf6/emsdk-main/emsdk.py", line 3189, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/runner/work/_temp/8cea6493-38d4-441a-899c-6fd569de9cf6/emsdk-main/emsdk.py", line 3112, in main
    tools_to_activate = currently_active_tools()
  File "/home/runner/work/_temp/8cea6493-38d4-441a-899c-6fd569de9cf6/emsdk-main/emsdk.py", line 2511, in currently_active_tools
    if tool.is_active():
  File "/home/runner/work/_temp/8cea6493-38d4-441a-899c-6fd569de9cf6/emsdk-main/emsdk.py", line 1834, in is_active
    if not self.is_installed():
  File "/home/runner/work/_temp/8cea6493-38d4-441a-899c-6fd569de9cf6/emsdk-main/emsdk.py", line 1812, in is_installed
    content_exists = is_nonempty_directory(self.installation_path())
  File "/home/runner/work/_temp/8cea6493-38d4-441a-899c-6fd569de9cf6/emsdk-main/emsdk.py", line 1711, in installation_path
    pth = self.expand_vars(self.install_path)
  File "/home/runner/work/_temp/8cea6493-38d4-441a-899c-6fd569de9cf6/emsdk-main/emsdk.py", line 1684, in expand_vars
    installed_node_nightlys = dir_installed_nightly_node_versions()
  File "/home/runner/work/_temp/8cea6493-38d4-441a-899c-6fd569de9cf6/emsdk-main/emsdk.py", line 1493, in dir_installed_nightly_node_versions
    return [name for name in os.listdir(path) if os.path.isdir(os.path.join(path, name)) and name.startswith("nightly-")]
FileNotFoundError: [Errno 2] No such file or directory: '/home/runner/work/my-repo/my-repo/node'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions