bootdotdev / bootdev

A CLI used to complete coding challenges and lessons on Boot.dev
https://www.boot.dev
MIT License
470 stars 17 forks source link

Stuck in upgrade loop #58

Closed rkapu closed 6 days ago

rkapu commented 1 month ago

Upon trying to submit a task, I was presented with a requirement to upgrade the CLI tool.

Screenshot 2024-09-29 at 13 51 51

After running upgrade command, I was still on the same version as before and kept receiving a message that upgrade is available when running bootdev command.

Screenshot 2024-09-29 at 13 51 24

I'm using asdf as runtime versions manager.

rkapu commented 1 month ago

Reshiming after bootdev upgrade did not help.

Completely removing the installed go bootdev packages and binaries, reinstalling them and reshiming asdf golang plugin helped.

So probably some local asdf go plugin issue, or the upgrade command is not compatible in some ways with asdf go plugin.

rkapu commented 1 month ago

Aren't updates optional though? Or are they required when new major versions come out?

From the first glance at code, it seems that commands should still execute fine, regardless of update message. But for me, the runs and submissions did not work on 1.8.2

epzeller commented 1 month ago

I am also stuck in the upgrade loop. When I try and submit my code I am told:

A new version of the bootdev CLI is available! Please run the following command to update: bootdev upgrade

I run bootdev upgrade

Successfully upgraded to v1.7.1!

And then I get the same error as before.

skovranek commented 1 week ago

Is this error still persisting?

IIRC, the fix maybe to run the go install command manually:

go install github.com/bootdotdev/bootdev@latest

If that doesn't work, manually remove the binary after using which to find its location and try again: which bootdev

rkapu commented 6 days ago

Is this error still persisting?

IIRC, the fix maybe to run the go install command manually:

go install github.com/bootdotdev/bootdev@latest

If that doesn't work, manually remove the binary after using which to find its location and try again: which bootdev

Had to upgrade again recently. This time all went smooth. Upgraded with bootdev upgrade and then asdf reshim golang. No issues this time.

I will close the ticket. Thanks.