Skip to content

Cypress shouldn't be injecting a GitHub URL into the lockfile #7124

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

Closed
kaiyoma opened this issue Apr 23, 2020 · 2 comments
Closed

Cypress shouldn't be injecting a GitHub URL into the lockfile #7124

kaiyoma opened this issue Apr 23, 2020 · 2 comments
Labels
type: duplicate This issue or pull request already exists

Comments

@kaiyoma
Copy link

kaiyoma commented Apr 23, 2020

Current behavior:

A GitHub URL is put into the lockfile, which is much less reliable than an npm package.

Desired behavior:

Only npm packages should be downloaded.

Details

Last night, our builds failed for the better part of 4 hours because yarn install failed with this error:

07:01:29  [1/4] Resolving packages...
07:01:31  [2/4] Fetching packages...
07:02:18  error An unexpected error occurred: "https://codeload.github.com/cypress-io/request/tar.gz/b5af0d1fa47eec97ba980cde90a13e69a2afcd16: Request failed \"500 Internal Server Error\"".

I think it's bad practice for Cypress (or any other package) to be injecting GitHub URLs into package lockfiles, for exactly this reason. In my experience, the npm CDN is much more reliable. Also, we use an internal npm registry - which I'm sure many other organizations do as well - which caches package downloads, but that cache doesn't work if Cypress is trying to download directly from GitHub.

Whatever is being downloaded should be package-ified and put on npm, just like everything else. Or, it should be included in the Cypress binary. We're also caching that locally, but this GitHub URL circumvents that cache as well.

Versions

Cypress: 4.1.0

@flotwig
Copy link
Contributor

flotwig commented Apr 23, 2020

Fixed in 4.3.0, please try upgrading: #6752

@flotwig flotwig closed this as completed Apr 23, 2020
@flotwig flotwig added the type: duplicate This issue or pull request already exists label Apr 23, 2020
@kaiyoma
Copy link
Author

kaiyoma commented Apr 23, 2020

That won't be possible unfortunately until you guys fix your big TypeScript problem: #6690

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants