Code Monkey home page Code Monkey logo

Comments (4)

esselius avatar esselius commented on May 29, 2024

I also encountered this bug. The reason I want to use asdf-direnv is the huge boot performance improvement:

Standard asdf:

$ time node -v
v14.14.0

________________________________________________________
Executed in  487.45 millis    fish           external
   usr time  270.40 millis   82.00 micros  270.32 millis
   sys time  394.76 millis  494.00 micros  394.26 millis

Using asdf-direnv:

$ time node -v
v14.14.0

________________________________________________________
Executed in    9.91 millis    fish           external
   usr time    4.75 millis   97.00 micros    4.65 millis
   sys time    3.70 millis  507.00 micros    3.20 millis

from asdf-gcloud.

jthegedus avatar jthegedus commented on May 29, 2024

Thanks for providing this bug report @svirpridon especially with your investigations. I'll need to see if asdf-direnv provides any env vars or context information for me to detect when it is in use 🤔

Apologies for the really late reply, I didn't get a notification about this issue 🙃 (need to check my notification settings)

from asdf-gcloud.

hollow avatar hollow commented on May 29, 2024

The solution with ${BASH_SOURCE[0]} should work fine. Even upstream plugins use this approach: https://github.com/asdf-vm/asdf-ruby/blob/master/bin/exec-env

from asdf-gcloud.

jthegedus avatar jthegedus commented on May 29, 2024

@hollow I am open to receiving PRs. I would like to know if that syntax changes the required bash version and how, do you happen to know if it will have an affect on this?

from asdf-gcloud.

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.