Git Product home page Git Product logo

Comments (3)

tjamet avatar tjamet commented on May 25, 2024

Hi!
Thanks for raising.
Indeed, there is room for improvement on how we can customize the various configuration options of whalebrew.

I doubt though that it is judicious to install whalebrew things in a homebrew folder. By default, we should keep the semantics.

What would be interesting is to understand what are the mechanisms brew bundle supports so we can find a long-term solution.

If you have more insights about how brew bundle works, or if you can investigate it, it would be a great help and starting point.

from whalebrew.

jmlnik avatar jmlnik commented on May 25, 2024

Hi @tjamet

I did investigate thoroughly at the time and at the time, brew bundle really didn't offer much...

Note, I'm not suggesting whalebrew installs to a homebrew folder. I'm suggesting whalebrew adopts the same "pattern" but installs to its own folder /opt/whalebrew/bin. All that's necessary for this is to detect the architecture and switch the hard-coded path for Apple Silicon. I hope this makes sense!

// pseudo-code

if (architecture == Apple Silicon) {
  path = /opt/whalebrew/bin
} else {
  path = /usr/local/bin
}

The other solution is to add an install_path option to whalebrew's config file, allowing individual users to override the path as necessary.

// pseudo-code

if (config[install_path]) {
  path = config[install_path]
} else {
  path = /usr/local/bin
}

Or, better yet, add both!

I'm afraid I don't have time to write a PR until at least 2024...

from whalebrew.

tjamet avatar tjamet commented on May 25, 2024

Hi @jmlnik!

The feature should have been implemented and available in this build.

It would be great to have your feedback about it.
What works and what not.

On MacOS, you will need to run xattr -d com.apple.quarantine whalebrew-Darwin-$(uname -m) to be able to remove the macOS download warnings and use it.

from whalebrew.

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.