Code Monkey home page Code Monkey logo

Comments (3)

bacongobbler avatar bacongobbler commented on August 12, 2024

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.

bacongobbler avatar bacongobbler commented on August 12, 2024

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.

bacongobbler avatar bacongobbler commented on August 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.