-
Notifications
You must be signed in to change notification settings - Fork 935
Resolve dockerfile path based on original, non-redirected config path #10005
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
Conversation
🦋 Changeset detectedLatest commit: 4d4646b The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
Failed to automatically backport this PR's changes to Wrangler v3. Please manually create a PR targeting the Depending on your changes, running Notes:
|
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
0d98db5
to
db182fd
Compare
db182fd
to
4d4646b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 😄
(just left a couple of very minor comments 🙂)
@@ -17,6 +17,7 @@ export async function maybeBuildContainer( | |||
imageTag: string, | |||
dryRun: boolean, | |||
pathToDocker: string, | |||
/** The original (non-redirected) user config path */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about renaming the parameter userConfigPath
to avoid possible future confusion? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah that's probably better, but this needs to go out in the next release so i'm just going to kick this one through as is - sorry!
@@ -346,6 +346,113 @@ describe("wrangler deploy with containers", () => { | |||
expect(std.warn).toMatchInlineSnapshot(`""`); | |||
}); | |||
|
|||
it("resolve the dockerfile based on the non-redirected userConfigPath rather than the actual config path", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it("resolve the dockerfile based on the non-redirected userConfigPath rather than the actual config path", async () => { | |
it("resolve the dockerfile based on the non-redirected userConfigPath rather than the redirected config path", async () => { |
🤔 ?
This reverts commit 5c11fe7.
This reverts commit 64d71b1.
…name matches its own Worker name removing try catch since error gets thrown either way use userConfigPath instead of redirected one (#10005) Revert "use userConfigPath instead of redirected one (#10005)" This reverts commit 5c11fe7. fix deep import prettier run fix: make vitest-pool-workers not break if Workflow binding's script_name matches its own Worker name
…name matches its own Worker name removing try catch since error gets thrown either way use userConfigPath instead of redirected one (#10005) Revert "use userConfigPath instead of redirected one (#10005)" This reverts commit 5c11fe7. fix deep import prettier run fix: make vitest-pool-workers not break if Workflow binding's script_name matches its own Worker name
…name matches its own Worker name removing try catch since error gets thrown either way use userConfigPath instead of redirected one (#10005) Revert "use userConfigPath instead of redirected one (#10005)" This reverts commit 5c11fe7. fix deep import prettier run fix: make vitest-pool-workers not break if Workflow binding's script_name matches its own Worker name
…name matches its own Worker name removing try catch since error gets thrown either way use userConfigPath instead of redirected one (#10005) Revert "use userConfigPath instead of redirected one (#10005)" This reverts commit 5c11fe7. fix deep import prettier run fix: make vitest-pool-workers not break if Workflow binding's script_name matches its own Worker name
…hes its own Worker name (#10033) * fix: make vitest-pool-workers not break if Workflow binding's script_name matches its own Worker name removing try catch since error gets thrown either way use userConfigPath instead of redirected one (#10005) Revert "use userConfigPath instead of redirected one (#10005)" This reverts commit 5c11fe7. fix deep import prettier run fix: make vitest-pool-workers not break if Workflow binding's script_name matches its own Worker name * apply suggestions from code review * code review suggestion: delete script_name instead of replacing it
userConfigPath is the path of the original wrangler config, while configPath could point to a redirected wrangler config. We should resolve the dockerfile and build context based on the original config's path. This makes sure containers can be deployed if the app has been built by the vite plugin.