Giter Club home page Giter Club logo

Comments (6)

MikeMcQuaid avatar MikeMcQuaid commented on June 3, 2024 1

We can't do this now without breaking backwards compatibility.

People/places who care about XDG_CONFIG_HOME already set it and we respect it. If we don't: that's a bug. We're permanently a macOS package manager where freedesktop.org standards do not apply.

Passing on this, sorry.

from brew.

carlocab avatar carlocab commented on June 3, 2024

See related discussion at #15787 (comment).

from brew.

azatoth avatar azatoth commented on June 3, 2024

We can't do this now without breaking backwards compatibility.

If you were still looking for $HOME/.homebrew/brew.env if the other file didn't exists, how would that break backward compatibility? The only scenario I can think of is if someone has a $HOME/.config/homebrew/brew.env but hasn't set $XDG_CONFIG_HOME, which wouldn't make much sense.

from brew.

azatoth avatar azatoth commented on June 3, 2024

People/places who care about XDG_CONFIG_HOME already set it and we respect it

I think most people don't set $XDG_CONFIG_HOME if they are using the default $HOME/.config, but will still infer they are using it as it's part of their system.

from brew.

azatoth avatar azatoth commented on June 3, 2024

Passing on this, sorry

@MikeMcQuaid I'd like you to reconsider this.

from brew.

MikeMcQuaid avatar MikeMcQuaid commented on June 3, 2024

It's not just brew.env that uses this location, it's also used by HOMEBREW_LIVECHECK_WATCHLIST too.

.config/ is not widely used on macOS and we're primarily a macOS package manager.

Adding a separately default location for Linux for these two files only in cases where the user or the system doesn't set XDG_CONFIG_HOME makes the code and documentation unnecessarily complex.

If you care: set XDG_CONFIG_HOME. If you don't: just use our default locations.

Alternatively, convince every other project I use that uses a ~/.something e.g. RubyGems, rbenv, nodenv, npm, pyenv, Bash, ZSH, etc. to go use .config instead and, when they all do, we might too.

from brew.

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.