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

i should be able to have both gitops and gitops-ee installed without need to relinnk after install #3740

Open
enekofb opened this issue Dec 21, 2023 · 1 comment
Labels

Comments

@enekofb
Copy link
Contributor

enekofb commented Dec 21, 2023

Describe the bug

when trying to have both gitops and gitops-ee installed (at least with brew i have the following output)

Target /opt/homebrew/etc/bash_completion.d/gitops
is a symlink belonging to gitops-ee. You can unlink it:
  brew unlink gitops-ee

So current setup is not compatible

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /opt/homebrew
Could not symlink etc/bash_completion.d/gitops
Target /opt/homebrew/etc/bash_completion.d/gitops
is a symlink belonging to gitops-ee. You can unlink it:
  brew unlink gitops-ee

With the following compute

➜  website git:(wge-3600-gitops-runtime) ✗ brew install weaveworks/tap/gitops                                                              <aws:sts>


Running `brew update --auto-update`...
==> Auto-updated Homebrew!
==> Updated Homebrew from f61ef4be2 to 2926f26e2.
Updated 3 taps (ruimarinho/tap, homebrew/core and homebrew/cask).
==> New Casks
egovframedev

You have 78 outdated formulae and 3 outdated casks installed.

Warning: weaveworks/tap/gitops 0.38.0 is already installed and up-to-date.
To reinstall 0.38.0, run:
  brew reinstall gitops
➜  website git:(wge-3600-gitops-runtime) ✗   brew reinstall gitops                                                                         <aws:sts>
==> Fetching weaveworks/tap/gitops
==> Downloading https://github.com/weaveworks/weave-gitops/releases/download/v0.38.0/gitops-Darwin-arm64.tar.gz
Already downloaded: 

==> Reinstalling weaveworks/tap/gitops
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /opt/homebrew
Could not symlink etc/bash_completion.d/gitops
Target /opt/homebrew/etc/bash_completion.d/gitops
is a symlink belonging to gitops-ee. You can unlink it:
  brew unlink gitops-ee

To force the link and overwrite all conflicting files:
  brew link --overwrite gitops

To list all files that would be deleted:
  brew link --overwrite --dry-run gitops

Possible conflicting files are:
/opt/homebrew/etc/bash_completion.d/gitops -> /opt/homebrew/Cellar/gitops-ee/0.38.1/etc/bash_completion.d/gitops
/opt/homebrew/bin/gitops -> /opt/homebrew/Cellar/gitops-ee/0.38.1/bin/gitops
/opt/homebrew/share/zsh/site-functions/_gitops -> /opt/homebrew/Cellar/gitops-ee/0.38.1/share/zsh/site-functions/_gitops
==> Caveats
zsh completions have been installed to:
  /opt/homebrew/share/zsh/site-functions
==> Summary
🍺  /opt/homebrew/Cellar/gitops/0.38.0: 7 files, 66.3MB, built in 2 seconds
==> Running `brew cleanup gitops`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

To Reproduce

  1. i have installed gitops-ee using docs https://docs.gitops.weave.works/docs/enterprise/getting-started/install-enterprise/#install-the-weave-gitops-enterprise-cli-tool
  2. i go and install gitops cli using docs https://docs.gitops.weave.works/docs/open-source/getting-started/install-OSS/#install-the-gitops-cli

try to have them both working at the same time without hacks

Actual behaviour

I need to force linking gitops to either gitops or gitops-ee

Expected behaviour

I want to have both gitops and gitops-ee installed

@enekofb enekofb added bug Something isn't working severity_medium labels Dec 21, 2023
@enekofb enekofb changed the title i should be able to have both gitops and gitops-ee installed without funky workarounds i should be able to have both gitops and gitops-ee installed without need to relinnk after install Dec 21, 2023
@gecube
Copy link

gecube commented Feb 20, 2024

I faced the same issue. The possible solution could be to incorporate free gitops tool functions into gitops-ee and then it would be enough to use one utility to rule all the possible setups :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants