feat: no longer accept the endpoint on the command line#1274
feat: no longer accept the endpoint on the command line#1274
Conversation
|
I think we should keep
I think for agents it also might be easier to use Also just to diagnose things quickly on your own you might have |
|
Agreed, we should keep it but change the enforcement. I don't know why that existed before? Maybe it should only warn if SRC_ENDPOINT is set |
keegancsmith
left a comment
There was a problem hiding this comment.
As mentioned in the comments, lets not remove it but rather change what we do with the argument.
|
Closing in favor of a more comprehensive refactoring to be designed. |
The endpoint on the command line always had to match
SRC_ENDPOINT, which defaults tohttps://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 insteadBefore:

After:

Test plan
CI tests updated.