r-darwish / topgrade

Upgrade everything
GNU General Public License v3.0
3.37k stars 162 forks source link

Doom Emacs step fails with 'Error: unknown option -y' #960

Open mayersj1 opened 2 years ago

mayersj1 commented 2 years ago

What did you expect to happen?

Doom emacs upgrade script would run

What actually happened?

Doom emacs step failed with the following error info:

―― 10:28:46 - Doom Emacs ――――――――――――――――――――――――――――――――――――――――――――――――――――――― Error: unknown option -y

Usage: doom [-!|--force] [-D|--debug] [--doomdir DIR] [--emacsdir DIR] [--pager BOOL] [--[no-]color] [-L|--load|--strict-load FILE]... [-E|--eval FORM]... [--] COMMAND [ARGS...]

See 'doom h[elp]' or 'doom {-?,--help}' for documentation.

Additional details

MacOS 12.4 Monterey Topgrade installed via Homebrew

Paste the output of `topgrade -v`
xeruf commented 2 years ago

The step seems completely broken now:

❯ topgrade --only emacs
❯ doom upgrade
> Preparing to upgrade Doom Emacs and its packages...
- A new version of Doom Emacs is available!

it just exits with exit code 0 doing nothing, even though there is clearly an update available

reinaldoossuna commented 2 years ago

@xeruf try to run that topgrade --only emacs -v. it's should be something like that:

topgrade --only emacs -v
....
Emacs: SKIPPED: Path "/home/nardo/.emacs.d/init.el" doesn't exist

the hack solution it's to create a init.el.

touch ~/.emacs.d/init.el

Now it's should be fail because there is no option -y flag anymore, #968 fixes that.