Skip to content

angular cli will remove the target of the soft symbolic hardly in the dist dir #15183

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

Closed
rdkmaster opened this issue Jul 29, 2019 · 1 comment · Fixed by #16066
Closed

angular cli will remove the target of the soft symbolic hardly in the dist dir #15183

rdkmaster opened this issue Jul 29, 2019 · 1 comment · Fixed by #16066
Assignees
Labels
Milestone

Comments

@rdkmaster
Copy link

rdkmaster commented Jul 29, 2019

🐞 Bug report

Command (mark with an x)

- [ ] new
- [x ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

angular cli 1.6.8 is fine

Description

A clear and concise description of the problem...

In my case, I need to create a symbolic pointing to the source code of my project, angular cli will remove the target dir of the soft symbolic hardly in the dist dir instead of just remove the soft symbolic itself when is use ng build command.

🔬 Minimal Reproduction

run the following commands

git clone https://github.com/rdkmaster/jigsaw.git
cd jigsaw
npm i
mkdir output
cd output
ln -s .. source
cd ..
ng build --output-path output # this command should be failure everytime

the last command should be failure everytime, and print the following error

ENOTDIR: not a directory, rmdir '/home/rdk/jigsaw-for-ued/www/jigsaw/source'
Error: ENOTDIR: not a directory, rmdir '/home/rdk/jigsaw-for-ued/www/jigsaw/source'
    at Object.rmdirSync (fs.js:684:3)
    at Observable.rxjs_1.Observable [as _subscribe] (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/@angular-devkit/core/node/host.js:207:28)
    at Observable._trySubscribe (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/Observable.js:44:25)
    at Observable.subscribe (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/Observable.js:30:22)
    at /home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/util/subscribeTo.js:22:31
    at Object.subscribeToResult (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/util/subscribeToResult.js:10:45)
    at MergeMapSubscriber._innerSub (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/operators/mergeMap.js:82:29)
    at MergeMapSubscriber._tryNext (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/operators/mergeMap.js:76:14)
    at MergeMapSubscriber._next (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/operators/mergeMap.js:59:18)
    at MergeMapSubscriber.Subscriber.next (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/Subscriber.js:66:18)
    at Observable._subscribe (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/util/subscribeToArray.js:5:20)
    at Observable._trySubscribe (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/Observable.js:44:25)
    at Observable.subscribe (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/Observable.js:30:22)
    at MergeMapOperator.call (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/operators/mergeMap.js:39:23)
    at Observable.subscribe (/home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/Observable.js:25:31)
    at /home/rdk/jigsaw-for-ued/jigsaw-source/node_modules/rxjs/internal/util/subscribeTo.js:22:31

And, if I remove the symbolic output/source before the ng build command, everything goes fine again.

🔥 Exception or Error





🌍 Your Environment





Anything else relevant?

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants