fix: update lockfile and detect TLS errors in login#74
Merged
Conversation
The release PR bumped platform package versions in package.json but did not regenerate the lockfile, causing `bun install --frozen-lockfile` to fail in CI.
Corporate proxies performing SSL inspection cause fetch() to fail with opaque certificate errors. This detects those errors and tells the user to set NODE_EXTRA_CA_CERTS instead of showing a raw error message.
Deploying archgate-cli with
|
| Latest commit: |
8c72940
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8454f1c6.archgate-cli.pages.dev |
| Branch Preview URL: | https://fix-lockfile-and-tls-error-h.archgate-cli.pages.dev |
The release bump script updates optionalDependencies in package.json but was not running `bun install` afterward, leaving the lockfile stale and breaking `--frozen-lockfile` in CI.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
package.jsonbut did not regeneratebun.lock, causingbun install --frozen-lockfileto fail in CI.fetch()to fail with opaque certificate errors (e.g.self signed certificate in certificate chain). The login command now detects these and shows an actionable message telling the user to setNODE_EXTRA_CA_CERTS.Test plan
bun run validatepassestests/helpers/tls.test.ts(9 tests) cover pattern detection and edge cases