Skip to content

feat: no longer accept the endpoint on the command line#1274

Open
peterguy wants to merge 2 commits intomainfrom
peterguy/remove-endpoint-in-command-line
Open

feat: no longer accept the endpoint on the command line#1274
peterguy wants to merge 2 commits intomainfrom
peterguy/remove-endpoint-in-command-line

Conversation

@peterguy
Copy link
Contributor

The endpoint on the command line always had to match SRC_ENDPOINT, which defaults to https://sourcegraph.com; there was no point to supporting the command-line argument.

This could be considered a "breaking change" because the error The configured endpoint is [SRC_ENDPOINT], not [command-line-arg]. Will no longer show up.

It has been replaced by a usage error: src login no longer accepts a URL argument; set SRC_ENDPOINT instead

Before:
CleanShot 2026-03-16 at 20 50 07@2x

After:
CleanShot 2026-03-16 at 20 50 36@2x

Test plan

CI tests updated.

@peterguy peterguy self-assigned this Mar 17, 2026
@peterguy peterguy requested a review from a team March 17, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant