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(compile): regression handling redirects #26586

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

dsherret
Copy link
Member

Closes #26583

) -> Result<Option<DenoCompileModuleData<'a>>, AnyError> {
let mut count = 0;
let mut current = specifier;
let mut specifier = original_specifier;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We were accidentally returning the original specifier from this function instead of the resolved redirected specifeir.

@KnorpelSenf
Copy link
Contributor

The original repro script from #26583 still fails on this branch, am I missing something?

@dsherret
Copy link
Member Author

dsherret commented Oct 27, 2024

Are you setting the DENORT_BIN env var to the built denort binary when compiling?

@dsherret dsherret merged commit f61af86 into denoland:main Oct 28, 2024
17 checks passed
@dsherret dsherret deleted the fix_compile_redirects branch October 28, 2024 13:32
@KnorpelSenf
Copy link
Contributor

I have not ... but I also trust the review of @bartlomieju so I guess I'll just update to 2.0.4 when it's done :D

bartlomieju pushed a commit that referenced this pull request Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: deno compile creates a binary that doesn't properly handle HTTP redirects
3 participants