Deploy does not follow symlinks
Open
Nobody has claimed this yet.
area: command: deploy
type: feature
- Dominant language
- TypeScript
- Stars
- 1.9k
- Forks
- 474
- Avg merge
- 23h 30m
- Merged PRs (30d)
- 53
Description
Describe the bug
netlify deploy does not follow symlinks out of the publish directory and misses files.
To Reproduce
cd out/
ln -s ../index.html out/
cd ..
netlify deploy
Configuration
[build]
base = "."
publish = "out/"
command = "wasm-pack build --target no-modules"
Expected behavior
index.html should be included in the deploy. It isn't.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the documented netlify deploy command with the out/ publish directory and its index.html symlink. Trace the CLI's publish-directory file collection, then verify that a deploy containing the symlink includes index.html as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100