11/08/2022, 3:13 PM
I am trying to run
make ensure
and with all the requirements installed there is always an error after
yarn install --frozen-lockfile
is executed. :
$ make ensure
cd sdk && go mod download
cd pkg && go mod download
cd tests && go mod download
Checking for go . ✓
make[1]: Entering directory '/home/x/go/src/'
Checking for dotnet . ✓
# We want to dotnet restore all projects on startup so that omnisharp doesn't complain about lots of missing types on startup.
dotnet restore dotnet.sln
  Determining projects to restore...
  Restored /home/x/go/src/ (in 280 ms).
  Restored /home/x/go/src/ (in 280 ms).
  Restored /home/x/go/src/ (in 280 ms).
  Restored /home/x/go/src/ (in 448 ms).
  Restored /home/x/go/src/ (in 449 ms).
make[1]: Leaving directory '/home/x/go/src/'
make[1]: Entering directory '/home/x/go/src/'
Checking for yarn . ✓
Checking for node . ✓
yarn install --frozen-lockfile
➤ YN0050: The --frozen-lockfile option is deprecated; use --immutable and/or --immutable-cache instead
➤ YN0070: Migrating from Yarn 1; automatically enabling the compatibility node-modules linker 👍
➤ YN0000: ┌ Resolution step
➤ YN0013: │ mockpackage@file:tests/mockpackage#tests/mockpackage::hash=4677a1&locator=%40pulumi%2Fpulumi%40workspace%3A. can't be found in the cache and wi
➤ YN0061: │ read-package-tree@npm:5.3.1 is deprecated: The functionality that this package provided is now in @npmcli/arborist
➤ YN0061: │ readdir-scoped-modules@npm:1.1.0 is deprecated: This functionality has been moved to @npmcli/fs
➤ YN0032: │ fsevents@npm:2.3.2: Implicit dependencies on node-gyp are discouraged
➤ YN0061: │ @npmcli/move-file@npm:2.0.1 is deprecated: This functionality has been moved to @npmcli/fs
➤ YN0000: └ Completed in 28s 901ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0028: │ The lockfile would have been modified by this install, which is explicitly forbidden.
➤ YN0000: └ Completed
➤ YN0000: Failed with errors in 28s 991ms
make[1]: *** [Makefile:27: .ensure.phony] Error 1
make[1]: Leaving directory '/home/x/go/src/'
make: *** [build/ sdk/nodejs_ensure] Error 2
I changed the --frozen-lockfile and the first warn dispaears but looks the YN0013 step is the one causing it to fail. I am missing something?
this was fixed just with yarn install instead of yarn command in the Makefile