Git Product home page Git Product logo

Comments (4)

Jarred-Sumner avatar Jarred-Sumner commented on July 18, 2024

We could add a bun patch --commit --force subcommand for those on macOS not using hardlinks to install. The problem with editing it directly on Linux or Windows is we use hardlinks to install packages by default. This means that editing the package there will also edit the cached on-disk version and that means it will effect every installed copy. We haven't come up with a way to preserve the fast install speeds while also allowing editing in-place

from bun.

ArnaudBarre avatar ArnaudBarre commented on July 18, 2024

Oh I see, I though this was like this on linux too. I'm happy to be on Mac OS.
Can't the command detect the current backend and commit directly?

from bun.

Jarred-Sumner avatar Jarred-Sumner commented on July 18, 2024

Can't the command detect the current backend and commit directly?

Unfortunately, not always. You could install from a USB stick. You could install from a network drive. The package could be a symlink to a network drive. You might be on a very old HFS+ volume. These are all edgecases, but we only know what was used at the time of install

from bun.

ArnaudBarre avatar ArnaudBarre commented on July 18, 2024

It means that a install folder can contains a mix of multiple backend if install was done with one but a package was added with another later? There is no way to be sure a folder is not a hardlink/symlink on Mac?

from bun.

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.