toland / qlmarkdown

QuickLook generator for Markdown files.
3.24k stars 141 forks source link

Brew upgrade failed #101

Closed sdaitzman closed 4 years ago

sdaitzman commented 4 years ago
$ brew upgrade qlmarkdown
==> Upgrading 1 outdated package:
Error: Cask 'qlmarkdown' definition is invalid: Token '{:v1=>"qlmarkdown"}' in header line does not match the file name.
$ 

Screen Shot 2020-08-21 at 11 53 27 AM

sdaitzman commented 4 years ago
 $ brew --version
Homebrew 2.4.13
Homebrew/homebrew-core (git revision 479e5e; last commit 2020-08-21)
Homebrew/homebrew-cask (git revision 84cf88; last commit 2020-08-21)
$
setanarut commented 4 years ago

@sdaitzman You forgot to write cask. $ brew cask upgrade qlmarkdown

sdaitzman commented 4 years ago

Nah, that gets fixed automatically:

 $ brew cask upgrade qlmarkdown
Updating Homebrew...
==> Upgrading 1 outdated package:
Error: Cask 'qlmarkdown' definition is invalid: Token '{:v1=>"qlmarkdown"}' in header line does not match the file name.
$
setanarut commented 4 years ago

Nah, that gets fixed automatically:

 $ brew cask upgrade qlmarkdown
Updating Homebrew...
==> Upgrading 1 outdated package:
Error: Cask 'qlmarkdown' definition is invalid: Token '{:v1=>"qlmarkdown"}' in header line does not match the file name.
$

ha ok sorry, try

> brew reinstall qlmarkdown

sdaitzman commented 4 years ago
 $ brew reinstall qlmarkdown
==> Downloading https://github.com/toland/qlmarkdown/releases/download/v1.3.6/QLMarkdown.qlgenerator.zip
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/32054/909f7a00-f830-11e9-9a09-5cbf642c5ba8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200821%2Fus-east-1%2Fs3
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'qlmarkdown'.
Error: Cask 'qlmarkdown' definition is invalid: Token '{:v1=>"qlmarkdown"}' in header line does not match the file name.
$

Hmm, seems to still not work, odd. I haven't tried reproducing this on any other machines yet...

setanarut commented 4 years ago
 $ brew reinstall qlmarkdown
==> Downloading https://github.com/toland/qlmarkdown/releases/download/v1.3.6/QLMarkdown.qlgenerator.zip
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.com/32054/909f7a00-f830-11e9-9a09-5cbf642c5ba8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200821%2Fus-east-1%2Fs3
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'qlmarkdown'.
Error: Cask 'qlmarkdown' definition is invalid: Token '{:v1=>"qlmarkdown"}' in header line does not match the file name.
$

Hmm, seems to still not work, odd. I haven't tried reproducing this on any other machines yet...

10.15.6 We are using the same version of macOS. The commands works for me.

sdaitzman commented 4 years ago

Ah, of course. For the same reason brew will not successfully install, it will not remove.

$ brew remove qlmarkdown
Error: Cask 'qlmarkdown' definition is invalid: Token '{:v1=>"qlmarkdown"}' in header line does not match the file name.
$
sdaitzman commented 4 years ago
 $ brew cask zap qlmarkdown
==> Implied "brew cask uninstall qlmarkdown"
==> Backing QuickLook Plugin 'QLMarkdown.qlgenerator' up to '/usr/local/Caskroom/qlmarkdown/1.3.6/QLMarkdown.qlgenerator'.
==> Removing QuickLook Plugin '/Users/_____/Library/QuickLook/QLMarkdown.qlgenerator'.
Warning: No zap stanza present for Cask 'qlmarkdown'
==> Removing all staged versions of Cask 'qlmarkdown'
$ brew cask install qlmarkdown
==> Downloading https://github.com/toland/qlmarkdown/releases/download/v1.3.6/QLMarkdown.qlgenerator.zip
Already downloaded: /Users/_____/Library/Caches/Homebrew/downloads/e1e7496e3912ee8045ab3591315ba6ab3873a3bcb43fdc9e00fee148e00f03ca--QLMarkdown.qlgenerator.zip
==> Verifying SHA-256 checksum for Cask 'qlmarkdown'.
==> Installing Cask qlmarkdown
==> Moving QuickLook Plugin 'QLMarkdown.qlgenerator' to '/Users/_____/Library/QuickLook/QLMarkdown.qlgenerator'.
🍺  qlmarkdown was successfully installed!
$

Hmm, odd. Resolved, but not diagnosed! Thanks for your work on this! ☺️