topgrade icon indicating copy to clipboard operation
topgrade copied to clipboard

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

Open mayersj1 opened this issue 2 years ago • 2 comments

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

  • Which operating system or Linux distribution are you using?
  • How did you install Topgrade?

MacOS 12.4 Monterey Topgrade installed via Homebrew

Paste the output of `topgrade -v`

mayersj1 avatar Jun 21 '22 17:06 mayersj1

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

xeruf avatar Jul 01 '22 21:07 xeruf

@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.

reinaldoossuna avatar Jul 06 '22 13:07 reinaldoossuna