Skip to content

Package installation fails in most cases #443

@reichhartd

Description

@reichhartd

Description:

When a package has been updated, yarn install --frozen-lockfile --ignore-scripts fails in most cases.
We receive error messages according to the following pattern:

Run yarn install --frozen-lockfile --ignore-scripts
yarn install v1.22.17
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error An unexpected error occurred: "https://registry.npmjs.org/csstype/-/csstype-3.0.10.tgz: ENOENT: no such file or directory, open '/home/gharunner/.cache/yarn/v6/npm-csstype-3.0.10-integrity/node_modules/csstype/.yarn-tarball.tgz'".
info If you think this is a bug, please open a bug report with the information provided in "/home/gharunner/runner5/tokenstreet-gha-runner1-5/tokenstreet-app/tokenstreet-app/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Process completed with exit code 1.

The folders and modules vary each time.

However, the error should never occur because we have never activated caching:

env:
    NODE_VERSION: 16
...
            - uses: actions/[email protected]
              with:
                  node-version: ${{ env.NODE_VERSION }}

Action version:
v3.0.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

yarn

Repro steps:
Use this action as described above.

Expected behavior:
That this action works reliably with and without caching.

Actual behavior:
yarn install --frozen-lockfile --ignore-scripts fails in the most cases.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions