feat: provide shebang command with context of what got cloned#185
Conversation
I am writing a shebang script now and I realized that if I had this information, I would be able to conditionally choose between downloading a pre-built binary of running the deno script.
decafRunning deployments in test mode. Results will appear below. ...🟩 squash 🟩 merge method... 🚢 The next version of the project will be: 0.16.0 Learn moreLatest release: 0.15.0 Commit of latest release: 8478d77 Commits since last release: - feat: provide shebang command with context of what got cloned Related GitHub IssuesProblemI am writing a shebang script now and I realized that if I had this information, I would be able to conditionally choose between downloading a pre-built binary of running the deno script. SolutionProvide 2 environment variables when shebang scripts run. The shebang script can use env vars conditionally. Testing
Created a gist: #!/usr/bin/env node
console.log(`name...${process.env.DECAF_SHEBANG_REF_NAME}...`)
console.log(`type...${process.env.DECAF_SHEBANG_REF}...`)and run it, expecting to see the env vars. Notes for reviewers- chore(deps): update dependency deno to v2.8.0 (#184) This PR contains the following updates:
Release Notesdenoland/deno (deno)Read more: http://deno.com/blog/v2.8
(#32432)
(#34201)
(#34203)
(#32785)
(#34290)
(#33805)
(#32855)
(#33247)
(#33883)
(#33730)
(#33944)
(#33928)
(#34023)
(#33750)
(#33715)
(#33964)
(#34262)
(#34195)
(#33716)
(#33941)
(#33769)
(#33577)
(#33819)
(#33740)
(#33618)
(#33812)
(#34088)
(#33665)
(#33813)
(#33762)
(#33831)
(#33677)
(#33947)
(#34258)
(#33758)
(#33650)
(#33756)
(#33731)
(#34234)
(#33808)
(#34183)
(#33645)
(#33798)
(#33745)
(#33652)
(#33651)
(#33971)
(#34010)
(#33721)
(#33896)
(#33779)
(#33818)
(#33817)
(#33925)
(#33932)
(#33881)
(#33821)
(#33961)
(#33692)
(#33860)
Configuration📅 Schedule: (in timezone America/Chicago)
🚦 Automerge: Enabled. ♻ Rebasing: Whenever PR is behind base branch, or you tick the 🔕 Ignore: Close this PR and you won't be reminded about this update
This PR was generated by Mend Renovate. Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> follow-up to: #181 where we This PR contains the following updates:
🔧 This Pull Request updates lock files to use the latest dependency Configuration📅 Schedule: (in timezone America/Chicago)
🚦 Automerge: Enabled. ♻ Rebasing: Whenever PR becomes conflicted, or you tick the 👻 Immortal: This PR will be recreated if closed unmerged. Get
This PR was generated by Mend Renovate. Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Problemhaving frozen lock file has been really annoying, but especially because even with frozen disabled, from my understanding, deno still uses lock there is a new feature being added to renovatebot that allows you to Solutiondisable frozen lock files from deno config so we use the default Testing
After merging this PR, I am going to run renovatebot to see if it Notes for reviewers- build: simplify AGENTS.md and reduce token usage running tests (#180) Related GitHub IssuesProblemAGENTS.md uses too many tokens.
Solution
Testing
Notes for reviewers...🟩 rebase 🟩 merge method... 🚢 The next version of the project will be: 0.16.0 Learn moreLatest release: 0.15.0 Commit of latest release: 8478d77 Commits since last release: - feat: shebang command provides information on what got cloned I am writing a shebang script now and I realized that if I had this information, I would be able to conditionally choose between downloading a pre-built binary of running the deno script. This PR contains the following updates:
Release Notesdenoland/deno (deno)Read more: http://deno.com/blog/v2.8
(#32432)
(#34201)
(#34203)
(#32785)
(#34290)
(#33805)
(#32855)
(#33247)
(#33883)
(#33730)
(#33944)
(#33928)
(#34023)
(#33750)
(#33715)
(#33964)
(#34262)
(#34195)
(#33716)
(#33941)
(#33769)
(#33577)
(#33819)
(#33740)
(#33618)
(#33812)
(#34088)
(#33665)
(#33813)
(#33762)
(#33831)
(#33677)
(#33947)
(#34258)
(#33758)
(#33650)
(#33756)
(#33731)
(#34234)
(#33808)
(#34183)
(#33645)
(#33798)
(#33745)
(#33652)
(#33651)
(#33971)
(#34010)
(#33721)
(#33896)
(#33779)
(#33818)
(#33817)
(#33925)
(#33932)
(#33881)
(#33821)
(#33961)
(#33692)
(#33860)
Configuration📅 Schedule: (in timezone America/Chicago)
🚦 Automerge: Enabled. ♻ Rebasing: Whenever PR is behind base branch, or you tick the 🔕 Ignore: Close this PR and you won't be reminded about this update
This PR was generated by Mend Renovate. Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> follow-up to: #181 where we This PR contains the following updates:
🔧 This Pull Request updates lock files to use the latest dependency Configuration📅 Schedule: (in timezone America/Chicago)
🚦 Automerge: Enabled. ♻ Rebasing: Whenever PR becomes conflicted, or you tick the 👻 Immortal: This PR will be recreated if closed unmerged. Get
This PR was generated by Mend Renovate. Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Problemhaving frozen lock file has been really annoying, but especially because even with frozen disabled, from my understanding, deno still uses lock there is a new feature being added to renovatebot that allows you to Solutiondisable frozen lock files from deno config so we use the default Testing
After merging this PR, I am going to run renovatebot to see if it Notes for reviewers- build: simplify AGENTS.md and reduce token usage running tests (#180) Related GitHub IssuesProblemAGENTS.md uses too many tokens.
Solution
Testing
Notes for reviewers |
Related GitHub Issues
Problem
I am writing a shebang script now and I realized that if I had this information, I would be able to conditionally choose between downloading a pre-built binary of running the deno script.
Solution
Provide 2 environment variables when shebang scripts run. The shebang script can use env vars conditionally.
Testing
Created a gist:
and run it, expecting to see the env vars.
Notes for reviewers