GithubHelp home page GithubHelp logo

[bug] Double bun install about moon HOT 10 CLOSED

rhuanbarreto avatar rhuanbarreto commented on June 26, 2024 2
[bug] Double bun install

from moon.

Comments (10)

milesj avatar milesj commented on June 26, 2024 2

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.

milesj avatar milesj commented on June 26, 2024 1

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.

milesj avatar milesj commented on June 26, 2024 1

Yeah, JS having multiple runtimes really complicates things, especially when they are used together.

from moon.

rhuanbarreto avatar rhuanbarreto commented on June 26, 2024

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.

castarco avatar castarco commented on June 26, 2024

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.

  1. 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.

castarco avatar castarco commented on June 26, 2024

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.

milesj avatar milesj commented on June 26, 2024

You may need to wipe the .moon/cache. It's probably a serde error since serde is strict about fields.

from moon.

milesj avatar milesj commented on June 26, 2024

Can you try 1.24?

from moon.

castarco avatar castarco commented on June 26, 2024

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.

rhuanbarreto avatar rhuanbarreto commented on June 26, 2024

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)

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.