Skip to content

Conversation

@spwoodcock
Copy link
Contributor

Fixes #86

The problem seemed to be that the CLI command login attempts a 'pre-login' from the parent CLI command, from the provided flags or env var params.

Click then moves onto the login subcommand and runs a login there too - double login.

This caused the secondary problem of not respecting the provided positional or flag args for the login command, as prescedence over set environment variables upstream.

@SeqLaz SeqLaz requested a review from suricactus October 16, 2025 05:25
Copy link
Collaborator

@suricactus suricactus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix, thank you! I did not test myself, but codewise looks good.

@suricactus suricactus merged commit 1ad452d into opengisch:master Oct 16, 2025
8 checks passed
@suricactus
Copy link
Collaborator

Patch release will come in the following week or so.

@spwoodcock spwoodcock deleted the patch-1 branch October 16, 2025 06:31
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.

Environment variables take precedence over directly used CLI variables during login

2 participants