-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
test(swc): Add Bazel tests #6933
Conversation
e5eb214
to
128faf5
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.
Thank you so much!
swc-bump:
- dbg-swc
Oh CI failed |
This can only be merged after #6930. |
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.
Automated review comment generated by auto-rebase script
Head branch was pushed to by a user without write access
a44cf1e
to
5dfd118
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.
Honestly, I'm not sure if this should be treated as a valid test case.
Does tsc work in this way? I'm going to patch jsc.paths
to match one of tsc soon, and I think this test case can interfere it.
panic!("Failed to create symbolic link"); | ||
}; | ||
|
||
return (); |
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.
Please remove this line
let _ = remove_file(symlink_build_path.clone()); | ||
|
||
let symlink_source_path = src_dir.join("modules"); | ||
let _ = remove_file(symlink_source_path.clone()); |
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.
This clone is redundant
let _ = remove_file(symlink_build_path.clone()); | ||
|
||
let symlink_source_path = src_dir.join("modules"); | ||
let _ = remove_file(symlink_source_path.clone()); |
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.
let _ = remove_file(symlink_source_path.clone()); | |
let _ = remove_file(&symlink_source_path); |
let modules_dir = test_dir.join("modules"); | ||
|
||
let symlink_build_path = test_dir.join("build"); | ||
let _ = remove_file(symlink_build_path.clone()); |
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.
let _ = remove_file(symlink_build_path.clone()); | |
let _ = remove_file(&symlink_build_path); |
|
||
#[cfg(target_family = "unix")] | ||
{ | ||
symlink(src_dir, symlink_build_path.clone()).unwrap(); |
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.
Same here
#[cfg(target_family = "unix")] | ||
{ | ||
symlink(src_dir, symlink_build_path.clone()).unwrap(); | ||
symlink(modules_dir, symlink_source_path).unwrap(); |
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.
Same here
// unprivileged users. | ||
#[cfg(target_os = "windows")] | ||
{ | ||
symlink_dir(src_dir.clone(), symlink_build_path.clone()).unwrap_or_else(|_| { |
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.
Same here
Adds an integration test that simulates a Bazel environment using symbolic links to sources.
Related
jsc.paths
on Windows #6930