-
Notifications
You must be signed in to change notification settings - Fork 12k
use private yarn pkg cache, ensure private npm/yarn bin always on path #23372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f0066e8
to
77060a1
Compare
4498874
to
260710e
Compare
@@ -1,15 +1,17 @@ | |||
import { mkdir, writeFile } from 'fs/promises'; | |||
import { join } from 'path'; | |||
import { getGlobalVariable } from '../utils/env'; | |||
import { getGlobalVariable, setGlobalVariable } from '../utils/env'; | |||
|
|||
/** | |||
* Configure npm to use a unique sandboxed environment. | |||
*/ | |||
export default async function () { | |||
const tempRoot: string = getGlobalVariable('tmp-root'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the configured based on the package manager is used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The packages being tested (cli + yarn + npm) are all installed using npm before running the tests so I think we always need both (see 100-global-cli.ts).
d07a4d6
to
6d8af93
Compare
@@ -13,5 +13,6 @@ export default async function () { | |||
console.log(` ${envName}: ${process.env[envName]!.replace(/[\n\r]+/g, '\n ')}`); | |||
}); | |||
|
|||
await exec('which', 'ng', 'yarn', 'npm'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a commit adding this line to ensure the correct ng/yarn/npm are being used. You can omit that commit if you don't think it's useful.
6d8af93
to
4787253
Compare
4805a3b
to
9af75cd
Compare
Currently the esbuild tests are failing when the main project npm install occurs, but only on the npm+esbuild test and not the normal npm test.
then what seems like every package outputs:
Any ideas? Why would esbuild change anything regarding the npm install? EDIT: this seems to be after cac7b14 |
b2110d8
to
6278612
Compare
FWIW that esbuild job randomly switches between the error I listed above and:
EDIT: this seems to be after cac7b14 |
cac7b14
to
6278612
Compare
I'm going to drop cac7b14 for now so we can get the rest merged. |
6278612
to
d5e94ba
Compare
d5e94ba
to
6d7dc5b
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.