Comments (4)
The order in a cask file is ignored. There is a specific order defined:
When you have two DSLs with the same type, the order is currently undefined - it's not a stable sort and can execute in either order, API or not. We would need to sort by index as a second condition for that to be stable.
from homebrew-cask.
Thanks @jbfavre for the report, it's definitely a bug in Brew from what I can see.
@Bo98 Are you able to help here?
I think I've found the issue, but I can't work out the solution.
https://github.com/Homebrew/brew/blob/9b995947532ac067c3361cfa39e6a9d10491c77f/Library/Homebrew/cask/artifact_set.rb#L19
The ArtifactSet.new
class seems to be re-ordering the installer script
stanzas when yandex-cloud-cli
is loaded from the API. The second stanza is being fired first, causing the install to fail. They should fire in the same order as the caskfile, which they do when loaded from the ruby version.
https://github.com/Homebrew/homebrew-cask/blob/master/Casks/y/yandex-cloud-cli.rb#L18-L25
from homebrew-cask.
Looking at install.sh
, a hack that might work is -r /dev/null
rather than -n
as it seems that RC file modification also calls yc components post-update
.
from homebrew-cask.
@Bo98 Thanks for sharing your idea.
I tested it and, as far as I can tell: it works!
I'll open a PR to propose the fix
from homebrew-cask.
Related Issues (20)
- Cask texshop cannot be updated HOT 3
- cloudflare-warp fails to install HOT 4
- scilab cask uses out-of-date URLs for download which are very slow HOT 3
- Error: Unexpected method 'appcast' called on Cask transmission-remote-gui. HOT 1
- Unable to install yandex-cloud-cli (0.124.0) HOT 6
- Error: Unexpected method 'appcast' called on Cask postgres. HOT 1
- Upstream Issue with with chromium on Intel Macs HOT 9
- Uninstalling OBS leaves behind virtual camera HOT 11
- Error running brew doctor: Unexpected method 'appcast' called on Cask tcl. HOT 2
- google-drive version contains incorrect data
- Cask "alex313031-thorium" Require macos 10.15 not 10.13
- "Linear" cask URL has been hijacked
- Unexpected method 'appcast' called on Cask station HOT 1
- Can't update or remove redis-stack-server HOT 1
- unexpected method 'appcast' called on Cask font-firacode-nerd-font. HOT 1
- Can't upgrade (or install) `twine` HOT 11
- Error: Unexpected method 'appcast' called on Cask XXX. HOT 1
- Getting "Error: Unexpected method 'appcast' called on Cask adoptopenjdk11." HOT 1
- BetterAndBetter url changed HOT 1
- virtualdj download files have been moved by vendor.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-cask.