Comments (6)
Unfortunately, this is one of those cases cask-repair
(which is just a batch script) will not be able to handle correctly due to the variance in those casks. It’s the same issue with url do
blocks (though I think I already detect and stop the script on those. The solution here will be to cripple cask-repair
to not handle those.
I’ll do it on the cask-repair
cleanup (I’ve been accumulating a list of what needs to be done).
from tiny-scripts.
Thanks for that. I believe there is only one Cask that uses a url do
block (audacity).
So for the Casks with a language
stanza, the only way to update them is to check the sha256 of each language version and update them manually? If so, should we add a note to the instructions?
I suppose there is already a note there:
If there is a more complicated change, or there is a case where cask-repair fails, you can also follow the steps in Adding a Cask to do the same thing manually. Remember to update the version and shasum values, as well as the appcast checkpoint, if there is one.
from tiny-scripts.
So for the Casks with a
language
stanza, the only way to update them is to check the sha256 of each language version and update them manually?
Yes, because there’s no way (that I’m thinking of, in a bash script) to reliably get all languages the cask uses and their organisation in a reliable way that works for all casks.
As I said, I should add a note on cask-repair
that’ll stop changes on such casks and as such you’ll always need to manually update. When that happens, a note on the instructions should not be necessary.
from tiny-scripts.
Sound good.
from tiny-scripts.
Hi, I recently started using your script and I wondered if there's anything that can be done about this language stanza problem.
Yes, because there’s no way (that I’m thinking of, in a bash script) to reliably get all languages the cask uses and their organisation in a reliable way that works for all casks.
Would it be such a big problem? I think it's worth taking a shot. I'm gonna try to come up with some way and maybe submit a PR if you don't mind. I'm not a bash genius though 😄
from tiny-scripts.
Would it be such a big problem?
Yes. See below.
I think it's worth taking a shot.
It’s not. There are not enough casks with language
to be worth the time it’ll take to implement correctly.
I'm gonna try to come up with some way and maybe submit a PR if you don't mind.
I don’t mind and you can submit a PR, but it’s unlikely I will accept it.
I'm not a bash genius though
And this is why.
This is not a simple issue to tackle, and it requires a hackish solution, due to how the script works (programatically editing the cask text file). One that I’ll have to be the one to maintain and fix, which will be too time consuming to be worth it.
You are, naturally, free to surprise me and prove me wrong. But if you do, please follow my style in the script. My style is pretty consistent so it should be easy to follow. It’s common that I get PRs that ignore my style to such an extent I basically have to reimplement the whole feature myself. I won’t do it in this case (again, due to its complexity)
from tiny-scripts.
Related Issues (20)
- cask-repair incompatible with Linux HOT 4
- cask-repair not submitting updates HOT 1
- cask-repair cannot read from remote repository HOT 1
- `cask-repair` isn't finding my Git config HOT 1
- cask-repair -v 7.4.1,0 xampp fails HOT 1
- 401 when attempting to create pull request using cask-repair HOT 1
- bad URI issue HOT 11
- cask-repair fails to find cask ip-scanner HOT 4
- Fix cask-repair HOT 1
- cask-repair re-downloads same artifact url for different casks HOT 1
- cask-repair broken with Git 2.21 (default in Mojave's Xcode command line tools) HOT 1
- PR failing due to style issue: PR uses single quotes yet Brew Cask CI wants double quotes HOT 2
- cask-repair hangs during CI build, even though it has worked for months HOT 11
- cask-repair doesn't generate SHA256 string correctly HOT 2
- Installing updated cask with -i produces warning from Homebrew HOT 1
- 404 error opening cask-repair pull request HOT 1
- brew cask is deprecated HOT 1
- cask-repair tries to push to main repo URL instead of fork HOT 1
- calm-notifications does not seem to work with macOS Monterey HOT 8
- pkg-extract doesn't support pbzx payloads HOT 2
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 tiny-scripts.