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: Assembly not found on Windows #1398

Merged
merged 6 commits into from Apr 29, 2024
Merged

fix: Assembly not found on Windows #1398

merged 6 commits into from Apr 29, 2024

Conversation

mrgrain
Copy link
Contributor

@mrgrain mrgrain commented Apr 28, 2024

jsii-docgen fails in Windows with the error Assembly "<assembly-name>" not found.
The reason for this is that the path passed to the glob library we use must only use forward slashes.
However on Windows when using jsii-docgen, it may contain backslashes.

To fix the issue, we pass the assemblies directory as CWD to glob instead. The CWD doesn't have the same limitation in regards to backslashes.
Other fixes involve making the npm helpers Windows aware.

And finally this PR adds a Windows test to the compat build matrix.

@mrgrain mrgrain changed the title fix: windows bugs fix: Assembly not found on Windows Apr 28, 2024
@mrgrain mrgrain marked this pull request as ready for review April 28, 2024 23:02
@mrgrain mrgrain force-pushed the mrgrain/fix/windows branch 2 times, most recently from f59ad90 to c5b1210 Compare April 29, 2024 12:00
@@ -38,7 +38,7 @@ export class Npm {
// code execution as part of the install command using npm hooks. (e.g postInstall)
'--ignore-scripts',
// save time by not running audit
'--no-autit',
'--no-audit',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

🙈

@mergify mergify bot merged commit 7550410 into main Apr 29, 2024
14 checks passed
@mergify mergify bot deleted the mrgrain/fix/windows branch April 29, 2024 13:21
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

2 participants