Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!doctype html>
<html>
<body>
<script type="module">
console.log('hello from junction');
</script>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "ntfs-junction-app",
"private": true
}
9 changes: 9 additions & 0 deletions packages/cli/snap-tests/build-ntfs-junction/setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const fs = require('node:fs');
const path = require('node:path');

// Reproduce issue #1374: build fails when project root is reached through an NTFS junction.
// Layout after setup:
// ./real/app <- the actual project (real path)
// ./via <- NTFS junction pointing to ./real
// ./via/app <- the project reached through the junction
fs.symlinkSync(path.resolve('real'), path.resolve('via'), 'junction');
2 changes: 2 additions & 0 deletions packages/cli/snap-tests/build-ntfs-junction/snap.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
> node setup.js
> cd via/app && vp build 2>&1
7 changes: 7 additions & 0 deletions packages/cli/snap-tests/build-ntfs-junction/steps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ignoredPlatforms": ["darwin", "linux"],
"commands": [
{ "command": "node setup.js", "ignoreOutput": true },
"cd via/app && vp build 2>&1"
]
}
Loading