Comments (4)
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.
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.
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.
@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)
- Install Cloud SDK components automatically on new version from config file
- Support `latest` as a special case version HOT 1
- gcloud warns about other instances on your system PATH HOT 1
- Update to asdf 0.8.0 plugin API
- Error on install plugin HOT 11
- asdf list-all command returning incorrect version numbers HOT 3
- Git Hooks with commitlint via Husky
- Tagged versions w automated tagging HOT 1
- Utilise new asdf plugin documentation hooks HOT 1
- google-cloud-sdk releases lagging behind upstream by one version HOT 1
- `sort -V` is not portable HOT 1
- bug: error during installation with Python 3.10 HOT 1
- Using a plugin results in "unbound variable" HOT 1
- bug: exec-env does not work when invoked via asdf direnv plugin HOT 2
- bug: unbound variable when `gcloud` run without args HOT 4
- bug: Won't upgrade past version 403 HOT 5
- bug: Using gcloud without any parameters will crash HOT 5
- gcloud 449.0.0 attempts to install python as root on MacOS
- bug: list-all script is failing with empty error output HOT 1
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 asdf-gcloud.