Supporting non-standard environments #916
Replies: 3 comments 4 replies
-
|
Obviously open to your own suggestions/alternatives |
Beta Was this translation helpful? Give feedback.
-
|
Not sure if I'm missing something here, but the sole purpose of the What's the use case for adding this package to your dev dependencies if you cannot use the binary anyway ? |
Beta Was this translation helpful? Give feedback.
-
|
WAIT. Sorry, I should've looked at the code before asking this question. https://github.com/biomejs/biome/blob/main/packages/%40biomejs/biome/bin/biome#L22 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Related to #636
NixOS is my primary interest, since that is the operating system I use on all of my machines.
The problem is basically this: NixOS doesn't work out of the box with vendored binaries. Typically this is not a problem (especially in JS/TS projects). However, since biome is written in Rust and compiled to a native binary (library? not sure), simply
pnpm add -g @biomejs/biomeing will not work (see error in #636).I'm honestly not sure what the recommended approach should be here, in the general (not specific to biome) sense. Many, many dev dependencies recommend installing the tool globally (prisma being another example). Personally, I prefer having these dependencies explicitly included in my project's package.json. I feel like I am probably in the majority there. (but doesn't really matter).
Anyways, I'd like to be able to
pnpm add -dbiome to my project. BUT I'd like to say "don't download your own binary/lib, use the one I give you". Lots of possible ways to do this; my preference would be environment variable (which is how prisma lets you do it;PRISMA_SCHEMA_ENGINE_BINARY).It's not the biggest deal in the world, but would make my (and probably others, :cough: @FMGordillo :cough:) life a little easier :)
Beta Was this translation helpful? Give feedback.
All reactions