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

gpt --config keeps prompting to update to newer version, even after updating #18

Closed
nicobrenner opened this issue Mar 9, 2024 · 2 comments

Comments

@nicobrenner
Copy link
Contributor

I did a fresh install of gpt following the directions from the README:

brew install deo
deno run -rA https://deno.land/x/shellgpt/install.ts

This message is kind of strange, not sure what the warning means

Warning Implicitly using latest version (0.3.6) for https://deno.land/x/shellgpt/install.ts
ShellGPT 0.3.5 installer

Newer version of ShellGPT is available: 0.3.5 -> 0.3.6

Please run the following command instead to update:
deno run -A https://deno.land/x/shellgpt/install.ts

Type 'skip' to continue with the installation of an outdated version.

Not clear what the right answer to the question at the end is, but it only installs if I type skip. Also the suggested command to update is the same as the one that I ran

After skipping, it installed

Skipping update...

What command should be used to invoke gpt?
(default: gpt, leave blank to use default)
> gpt

Would you like ShellGPT to check for updates?
Options:
(y)es - ask before installing [default]
(a)uto-update - install updates automatically without asking
(never) - never install or ask
leave blank to use default
> y

$ deno install -frA -n gpt https://deno.land/x/shellgpt/mod.ts
Would you like to run the above command to complete ShellGPT installation?
(y)es [default]
(n)o
leave blank to use default
> y

And now there was another warning about using the latest version

Warning Implicitly using latest version (0.3.6) for https://deno.land/x/shellgpt/mod.ts
✅ Successfully installed gpt
/Users/nico/.deno/bin/gpt
ℹ️  Add /Users/nico/.deno/bin to PATH
    export PATH="/Users/nico/.deno/bin:$PATH"


Configure and update via:
$ gpt --config

But when running the command (gpt --config), it would always give this same output:

gpt --config
Newer version of ShellGPT is available: 0.3.5 -> 0.3.6

$ deno install -frA -n gpt https://deno.land/x/[email protected]/mod.ts
Would you like to install the latest version of ShellGPT?
(Y)es / (n)o / (never) / (a)lways]: y
✅ Successfully installed gpt
/Users/nico/.deno/bin/gpt

# command for zsh-completions
autoload -U compinit && compinit

> Successfully updated! Please re-run `gpt --config`

ShellGPT seems to work, but I'm not sure which version I'm running or if the updates will work

gpt --repl
(No message passed)



> hello there
Hello! How can I assist you today?

>

Made a video where I go through the process, it's at 4:25 aprox here: https://www.loom.com/share/7f415a53cb404cb0a059a9a065addce8

@mattvr
Copy link
Owner

mattvr commented Mar 9, 2024

Thanks very much for reporting with the thorough info @nicobrenner. I forgot to increment the version number correctly. Just fixed in 0.3.7.

@mattvr mattvr closed this as completed Mar 9, 2024
@mattvr
Copy link
Owner

mattvr commented Mar 9, 2024

(oops, actually, it's fixed in 0.3.8)

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