Skip to content

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

Open
@enekofb

Description

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions