-
Notifications
You must be signed in to change notification settings - Fork 631
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
adding_d1_support #2960
adding_d1_support #2960
Conversation
Signed-off-by: Chris Lyons <52037738+mephmanx@users.noreply.github.com>
changelog detected ✅ |
Signed-off-by: Chris Lyons <52037738+mephmanx@users.noreply.github.com>
The worker script acceptance tests pass but I could not run the entire suite of acceptance tests as I dont not have everything enabled on my cloudflare account. |
with
is |
I updated the form name in the cloudflare-go lib with this PR That should fix this error. It looks like the msg I now get is: Error: error updating worker script: D1 bindings require module-format workers. (10021) |
with the latest cloudflare-go PR shimmed in, we're working now
|
Is there anything I can do to get the unit tests to pass? |
no, it's dependent on an upstream release. the tests above show this is fine once that happens. |
Marking this pull request as stale due to 14 days of inactivity. This helps our maintainers find and focus on the active pull requests. If this pull request receives no comments in the next 7 days it will automatically be closed. Maintainers can also remove the |
Would like to get this moved forward... |
I have a worker ready to use this with. I deploy the worker via terraform and need to include the d1 binding in the terraform script as it unbinds on each deploy. |
I know you are busy but if you could take a look and see if this can be merged or let me know whatever changes need to be made. Its a bit annoying to rebind the D1 DB to a worker after each terraform deploy... |
Ok, I see the lint error....Ill get that today. Thank you so much for looking at it, I have my user preferences microservices already running off D1 and REALLY like it...this is the only thing that I need to put the bow on it. |
Signed-off-by: Chris Lyons <52037738+mephmanx@users.noreply.github.com>
I ran gofmt in each of the 4 files I changed....if you could please execute the lint step once it gets there. Thank you again! |
Please rerun when you have a bit of time.... hopefully the lint thing is fixed now. |
acceptance tests all passing
|
This functionality has been released in v4.22.0 of the Terraform Cloudflare Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Adding initial support for D1 works script bindings. Acceptance tests related to worker scripts pass.
Depends on cloudflare/cloudflare-go#1446