Skip to content
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

Spurious "c" environment #700

Closed
sedubois opened this issue May 29, 2024 · 3 comments
Closed

Spurious "c" environment #700

sedubois opened this issue May 29, 2024 · 3 comments

Comments

@sedubois
Copy link

My files http-client.env.json and http-client.private.env.json only contain keys localhost and staging, but in the environment selector appears a spurious third environment named "c".

Screenshot 2024-05-29 at 08 48 15

AnWeber added a commit that referenced this issue May 30, 2024
@AnWeber
Copy link
Owner

AnWeber commented May 30, 2024

I search the following places for environments. One of them seems to contain a c.

  • .env files (e.g c.env or .env.c)
  • http-client.env.json or http-client.private.env.json
  • local file .httpyacjs or httpyac.config.json
  • package.json with property httpyac
    I added log output to which provider support which envs

@sedubois
Copy link
Author

@AnWeber The culprit is an .envrc file at the root of the repository. When removing that file, the "c" environment disappears. Apparently the check for .env files is not specific enough and picks up that file when it shouldn't.

@AnWeber
Copy link
Owner

AnWeber commented May 30, 2024

@sedubois thx for the hint to .envrc. I added a fix to the dotenv provider

@AnWeber AnWeber closed this as completed May 30, 2024
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

No branches or pull requests

2 participants