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 windows next tests in ci #11050

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

dylan-conway
Copy link
Collaborator

What does this PR do?

testing using GetLongPathName in our resolver

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

Copy link

github-actions bot commented May 13, 2024

@Jarred-Sumner, your commit has failing tests :(

💪 4 failing tests Darwin AARCH64

💻 2 failing tests Darwin x64 baseline

💻 2 failing tests Darwin x64

🐧💪 1 failing tests Linux AARCH64

🐧🖥 1 failing tests Linux x64 baseline

🐧🖥 1 failing tests Linux x64

🪟💻 23 failing tests Windows x64 baseline

🪟💻 21 failing tests Windows x64

View logs

if (r.debug_logs) |*debug| {
debug.addNoteFmt("The import \"{s}\" is being treated as an absolute path", .{import_path});
debug.addNoteFmt("The import \"{s}\" is being treated as an absolute path", .{abs_import_path});
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should print the user-provided path. though, we dont really show this anywhere. (i could never get the debug messages to work)

pub fn ensureLongPath(buf: anytype, res: [:0]const u8) [:0]u8 {
assert(buf.ptr == res.ptr);
if (bun.Environment.isWindows) {
const long_path_len = bun.windows.GetLongPathNameA(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's only do this if the file path contains ~{0-9}

Copy link
Collaborator

Choose a reason for hiding this comment

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

And we should never use the A version of functions

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.

None yet

3 participants