Comments (3)
I haven't figured out how to determine which major OS release you're on, but we can certainly look into Homebrew core to figure out how they do it for MacOS. Once that's determined, we can then see how we can translate that to Windows and Linux. So yes, it'd be nice to solve this problem. For now the assumption is only the latest major OS releases are supported: Windows 10, High Sierra and... w/e flavour of Ubuntu/Debian is the latest.
from gofish.
If I'm reading the code right, the assumption is that the latest version of Homebrew supports bottles compiled on High Sierra by default, but there is no system in place to determine the underlying major OS release Homebrew is running on. That is configured separately through $HOMEBREW_MACOS_VERSION (or $HOMEBREW_OSX_VERSION for backwards compatibility), likely configured through the install script. That doesn't seem too hard to implement if someone wants to take a crack at it :)
from gofish.
Neat! There is a CLI tool available to determine the equivalent of /etc/os-release on Mac. and they do seem to be utilizing it in the install scripts. This does seem do-able. https://github.com/Homebrew/brew/blob/bbbd6d86b8885e4f5fc8ea10fd531fe91a2f5ec7/Library/Homebrew/brew.sh#L85-L86
><> cat /etc/os-release
cat: /etc/os-release: No such file or directory
><> sw_vers -productRelease
10.13.4
from gofish.
Related Issues (20)
- fix zip failure on windows
- Will this work with Linux/ARM? HOT 4
- Command aliases? HOT 2
- Support for uninstalling multiple packages at a time
- gofish pin <food> Hint failed HOT 3
- `gofish lint` should catch semver-invalid packages
- `gofish upgrade` should display which package is being installed
- Linux installation failed HOT 2
- Can't install 0.13.0 on Mac HOT 5
- gofish update and gofish upgrade fails to update repository HOT 3
- Update Old/Current Release Documentation to reflect new branch name. HOT 1
- Feature request: Creating symlinks under $GOFISH_BINPATH HOT 7
- Usage advice within a github workflow HOT 1
- SSL cert verification error trying to download helm HOT 6
- feature: ability to swap out the default rig HOT 9
- request: consider releasing binaries in github releases - goreleaser HOT 1
- proposal: ability to provide credentials to download releases HOT 2
- install completions HOT 4
- "gofish cleanup xyz" does not do anything! HOT 2
- darwin-arm64 build HOT 5
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 gofish.