Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: --from-dash vars incorrect fields #2124

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

JacobMGEvans
Copy link
Contributor

computing the name from binding response, now the vars will be computed, example:
[var.binding.name]: var.binding.text

this will resolve the issue that was occurring with generating a TOML with incorrect fields for the vars key/value pair.

resolves #2048

@JacobMGEvans JacobMGEvans added the bug Something that isn't working label Nov 2, 2022
@changeset-bot
Copy link

changeset-bot bot commented Nov 2, 2022

🦋 Changeset detected

Latest commit: ff0e8f0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wrangler Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2022

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/3381235915/npm-package-wrangler-2124

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/2124/npm-package-wrangler-2124

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/3381235915/npm-package-wrangler-2124 dev path/to/script.js
Additional artifacts:
npm install https://prerelease-registry.developers.workers.dev/runs/3381235915/npm-package-cloudflare-pages-shared-2124

Now the `vars` will be computed, example:
`[var.binding.name]: var.binding.text`

this will resolve the issue that was occurring with
generating a TOML with incorrect fields for the `vars` key/value pair.

resolves #2048
@codecov
Copy link

codecov bot commented Nov 2, 2022

Codecov Report

Merging #2124 (ff0e8f0) into main (9f509bc) will decrease coverage by 0.05%.
The diff coverage is 6.06%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2124      +/-   ##
==========================================
- Coverage   73.19%   73.14%   -0.06%     
==========================================
  Files         128      128              
  Lines        8641     8649       +8     
  Branches     2266     2267       +1     
==========================================
+ Hits         6325     6326       +1     
- Misses       2316     2323       +7     
Impacted Files Coverage Δ
packages/wrangler/src/init.ts 96.05% <ø> (ø)
packages/wrangler/src/d1/execute.tsx 14.87% <3.70%> (-1.65%) ⬇️
packages/wrangler/src/d1/backups.tsx 26.92% <16.66%> (+0.60%) ⬆️
...ackages/wrangler/src/__tests__/helpers/mock-bin.ts 100.00% <0.00%> (+5.26%) ⬆️

@JacobMGEvans JacobMGEvans merged commit 02ca556 into main Nov 3, 2022
@JacobMGEvans JacobMGEvans deleted the jacobmgevans/from-dash-fix branch November 3, 2022 16:17
@github-actions github-actions bot mentioned this pull request Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

🐛 BUG: environment variables incorrectly pulled when using init --from-dash
2 participants