Skip to content

envchain --list reports include dupe #34

@JammalGerardo

Description

@JammalGerardo

Background

I am using envchain from a while ago, but recently I am experiencing issues with the namespaces.
The AWS_ACCESS_KEY_ID , AWS_SECRET_ACCESS_KEY secrets are not getting updated on both namespaces (nonprod and prod), the problem is that when I check for the available namespaces I am seeing duplications:
Note: Namespaces 'test', 'nonprod1' and 'prod1' I set them for testing purposes.

$envchain --list                                                                                                                                               ok | 14:32:03
prod
nonprod
prod1
nonprod
prod1
prod
nonprod
nonprod1
prod
nonprod1
prod
test
prod1

Problem

I already tried a couple things:

  1. Uninstalling envchain to have a clean installation and set the namespaces again, but it keeps carrying the old and bad namespaces.

brew uninstall envchain

As well, I checked for any residual files but nothing is prompting.

brew list envchain                                           ok | 14:52:10
Error: No such keg: /usr/local/Cellar/envchain

And there is no configuration in the shell in my '.zshrc' related to envchain.

 ~  brew uninstall envchain                                                                  ok | 15:03:50

Error: No such keg: /usr/local/Cellar/envchain
 ~  brew install envchain                                                                 1 err | 15:04:01

==> Downloading https://formulae.brew.sh/api/formula.jws.json
##################################################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
##################################################################################################### 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/envchain/manifests/1.0.1
Already downloaded: /Users/gerardojammal/Library/Caches/Homebrew/downloads/5b1f306f33edaf81010971e94a0fab349073eb178d43d3fb3d32097ae9010a96--envchain-1.0.1.bottle_manifest.json
==> Fetching envchain
==> Downloading https://ghcr.io/v2/homebrew/core/envchain/blobs/sha256:747395bd5b5f304844923251c84df54fb23e5
Already downloaded: /Users/gerardojammal/Library/Caches/Homebrew/downloads/002013d2304cbfc4311081ed3e1bef12813a2e3739ce327af5e311f6c911328c--envchain--1.0.1.ventura.bottle.tar.gz
==> Pouring envchain--1.0.1.ventura.bottle.tar.gz
🍺  /usr/local/Cellar/envchain/1.0.1: 5 files, 42.7KB
==> Running `brew cleanup envchain`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
 ~  envchain --list                                                                     ok | 5s | 15:04:12
test
prod
nonprod1
prod
nonprod1
prod
prod1
nonprod
prod1
nonprod
prod1
nonprod
prod1
prod
  1. Tried to upgrade to the latest version in order to use --unset option but seem like the version available for Homebrew is not getting the latest release that includes that option.

Any help is more than welcome =D

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions