Comments (12)
robably because site generation runs on macOS 12 still (
macos-latest
still points tomacos-12
, but we could manually point tomacos-13
).
Yup. Addressed the title because I think the actual good fix for this is to use the brew info --json --cask
output (adding the new data if needed) to display a table of possible versions in cases like this because this pattern is so commonplace.
from formulae.brew.sh.
I'm not convinced anything more needs done here?
Only remaining improvement to the webpages is I'd make is to fold "Current version" into the variations table as that version actually means "Version of the machine that generated this page (Monterey)". Example (note how Monterey is missing): https://formulae.brew.sh/cask/mysqlworkbench
from formulae.brew.sh.
Probably because site generation runs on macOS 12 still (macos-latest
still points to macos-12
, but we could manually point to macos-13
).
from formulae.brew.sh.
So do we want to show the latest macOS version? Or all of the supported ones?
from formulae.brew.sh.
@SMillerDev All supported.
from formulae.brew.sh.
For anyone interested in tackling this: right now all of this info exists in the variations
part of the JSON. We used to have a versions
item in the JSON that contained exactly this info (added in #539 and Homebrew/brew#11915, and removed in b5704d4 and Homebrew/brew#15240).
It might be worth looking into re-adding versions
to the APIs, only to be added when running --variations
to not slow down generation too much except for when we're generating for the website
Edit: oops, now I see there's already a PR open for this
from formulae.brew.sh.
It might be worth looking into re-adding
versions
to the APIs, only to be added when running--variations
to not slow down generation too much except for when we're generating for the website
@Rylan12 I think we need to have Homebrew/brew do the same as what we're doing for the website. I'm open to @Bo98 and @apainintheneck thoughts on how best to balance this as I agree including this information would be nice.
from formulae.brew.sh.
Which APIs are we planning on adding cask variations to? I checked brew info --json=v2 --variations
and the JSON representation of casks on formulae.brew.sh
and both already included variations.
from formulae.brew.sh.
Could we get that info though?
from formulae.brew.sh.
"Current version" applies to all missing variations, so the extra information we would need is the set of possible macOS versions. We could extract that from brew
at build time perhaps - we have full control of the build now and can execute arbitrary Ruby code during the Jekyll build unlike the other brew.sh repos.
It would fill up the table on e.g. https://formulae.brew.sh/cask/amethyst a bit but it would behave consistently so would probably look ok (though that cask doesn't make sense anyway because of the >= 10.15, but that's an issue for homebrew-cask).
from formulae.brew.sh.
In addition, we probably should also make it so API generation more system-agnostic. i.e. it simulates the latest x86_64 macOS so "current version" refers to macOS 14 even if generated on macOS 12. GitHub-hosted runners lagging over a year behind is probably not going to change anytime soon.
from formulae.brew.sh.
In addition, we probably should also make it so API generation more system-agnostic. i.e. it simulates the latest x86_64 macOS so "current version" refers to macOS 14 even if generated on macOS 12.
Agreed 👍🏻
I think a happy middle ground could be a new field added to the API clarifying what the machine it was generated on is.
from formulae.brew.sh.
Related Issues (20)
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- super model for apple silicon M2Pro Mac Mini (cropped image)
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
- formulae.brew.sh deployment failed! HOT 1
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 formulae.brew.sh.