Comments (10)
I have a fix landing for this in 1.24. The gist is that if both bun and node are enabled, only node will be used for installing deps. This is more of a stopgap solution for now.
But I'm open to that autoinstall
setting. Was thinking of something similar.
from moon.
Yeah, this one seems tricky. The bun and node implementations are completely isolated from each other, so neither of them know that the other is running an install. Let me see what I can do.
from moon.
Yeah, JS having multiple runtimes really complicates things, especially when they are used together.
from moon.
At least avoid the same type of task (sync dependencies) to run concurrently would be a solution. Not sure how to make this work though. Count on you to find a solution! ๐
from moon.
Yesterday I encountered a similar ยน problem. I started a branch to add an autoInstall
option (true
by default, to not break current workflows) to the toolchain's bun section, to allow users to disable the automated bun install
step.
This autoInstall
option could be generic (not just for Bun), but I started small to see if I can get my problem solved.
I didn't finish it yet, but I hope I'll have it soon.
- In my case, I use NodeJS by default, and I rely on Bun to run TypeScript internal tools without having to compile them. I also rely on PNPM to manage the workspaces, which also conflicts with how Bun manages dependencies.
from moon.
Thank you! ๐ .
I could push what I have to a draft PR, but the reality is that, for some reason that I cannot identify yet, when I try to set that option, my compiled moon
keeps complaining that the field is not in the schema.
I've spent some hours going through the code to identify what I'm missing... but so far I'm unable to find the thing that I have to change so the validator "understands" that this field is now accepted ๐ .
from moon.
You may need to wipe the .moon/cache
. It's probably a serde error since serde is strict about fields.
from moon.
Can you try 1.24?
from moon.
Can you try 1.24?
@milesj I tried, it was enough to fix my problem :) . I'm not sure about @rhuanbarreto 's case.
from moon.
Tried and it solved my case! I'm closing the issue here and will reopen if it repeats. Thanks a lot @milesj ! โค๏ธ
from moon.
Related Issues (20)
- [bug] After update to 1.24, VSCode complains about `moon.yml` matching multiple schemas HOT 2
- [feature] How to create alias for hardcoded words? HOT 1
- [bug] `moon` overwrites files in git's `core.hooksPath` HOT 1
- [feat] Dynamic Bash/Fish tab completion for CLI HOT 1
- [bug] Regression on 1.24.3 on CI environment HOT 5
- [bug] Regression on proto after upgrade to 0.35.0 HOT 8
- [bug] Process /bin/zsh failed with a -1 exit code HOT 7
- [bug] 'moon' is not recognized as an internal or external command, operable program or batch file. HOT 10
- moon_app vs moon-cli HOT 1
- [bug] `moon ci` fails if bun is recently updated HOT 16
- [bug] Unexpected character '.' after patch version number HOT 6
- [bug] moon ci running dependent on target HOT 1
- [feature] Support Nix HOT 6
- [feature] hierarchical project grouping HOT 3
- [feature] ignore cache but still validate changes in inputs? HOT 6
- `dependencyVersionFormat: 'file'` has no affect [bug] HOT 5
- [feature] Support Remote Execution API for caching HOT 3
- [bug] moon does not keep formatting of package.json when updating toolchain version. HOT 3
- [bug] Failed to run `moon docker setup` HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moon.