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

Clean install causes command not found logs on internal functions #487

Open
bkosm opened this issue Aug 2, 2024 · 1 comment
Open

Clean install causes command not found logs on internal functions #487

bkosm opened this issue Aug 2, 2024 · 1 comment

Comments

@bkosm
Copy link

bkosm commented Aug 2, 2024

Environment

ARM chip with macOS, zsh, starship.rs prompt

Steps

  1. brew install bison
  2. bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

Issue

After reloading the shell and on any gvm invocation, the terminal prints command not found error logs with weird chars.

/Users/bartosz.kosmala/.gvm/scripts/function/compare_version.zwc: line 1: ������: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/display_error.zwc: line 1: �: No such file or directory
/Users/bartosz.kosmala/.gvm/scripts/function/display_fatal.zwc: line 1: �����8�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/display_message.zwc: line 1: �����¯�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/display_warning.zwc: line 1: �����$�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/extract_version.zwc: line 1: �����ê�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/find_local_pkgset.zwc: line 1: ������: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/find_path_upwards.zwc: line 1: �����t: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/gvm_environment_sanitize.zwc: line 1: �����¨�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/gvm_export_path.zwc: line 1: �����‹�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/locale_text.zwc: line 1: �����p�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/munge_path.zwc: line 1: �����∏�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/read_environment_file.zwc: line 1: �����p�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/resolve_fallback_pkgset.zwc: line 1: ������: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/resolve_fallback_version.zwc: line 1: �����T�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/compare_version.zwc: line 1: ������: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/display_error.zwc: line 1: �: No such file or directory
/Users/bartosz.kosmala/.gvm/scripts/function/display_fatal.zwc: line 1: �����8�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/display_message.zwc: line 1: �����¯�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/display_warning.zwc: line 1: �����$�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/extract_version.zwc: line 1: �����ê�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/find_local_pkgset.zwc: line 1: ������: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/find_path_upwards.zwc: line 1: �����t: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/gvm_environment_sanitize.zwc: line 1: �����¨�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/gvm_export_path.zwc: line 1: �����‹�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/locale_text.zwc: line 1: �����p�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/munge_path.zwc: line 1: �����∏�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/read_environment_file.zwc: line 1: �����p�: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/resolve_fallback_pkgset.zwc: line 1: ������: command not found
/Users/bartosz.kosmala/.gvm/scripts/function/resolve_fallback_version.zwc: line 1: �����T�: command not found
Usage: gvm [command]

Description:
  GVM is the Go Version Manager

Commands:
  version    - print the gvm version number
  get        - gets the latest code (for debugging)
  use        - select a go version to use (--default to set permanently)
  diff       - view changes to Go root
  help       - display this usage text
  implode    - completely remove gvm
  install    - install go versions
  uninstall  - uninstall go versions
  cross      - install go cross compilers
  linkthis   - link this directory into GOPATH
  list       - list installed go versions
  listall    - list available versions
  alias      - manage go version aliases
  pkgset     - manage go packages sets
  pkgenv     - edit the environment for a package set
  applymod   - apply the go version in go.mod

The procedure below causes same behavior on my machine, crossing out the problem steming from the prompt or the shell.

bash
source ~/.gvm/scripts/gvm
@Heunsig
Copy link

Heunsig commented Aug 7, 2024

I think the approach suggested here could solve the problem.
#486 (comment)

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