Junctions (linked folders) in the assets folder are only partially copied to the build output
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Estagnada
- Stack de tecnologia
- angular, typescript
- Domínio
- build-system, cli
Direção de pesquisa
Comece reproduzindo o caso do Windows 10 com uma junction em src/assets e, em seguida, compare o tratamento da pasta vinculada por build e serve com a saída em dist/assets. Está concluído quando pastas e arquivos aninhados, como myFolder/does not work.txt, são copiados, e não apenas os arquivos diretamente sob a junction.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
🐞 Bug report
Command
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- xi18n
- run
- config
- help
- version
- doc
Is this a regression?
Did not work with ng 8 and does not work with ng 10. Did not check with 9 or anything before 8.
Description
When creating a junction inside the src/assets folder to another folder somewhere in the filesystem, the compiled output only contains the files that are directly beneath the linked folder. Any sub-folders in this linked folder are ignored by the compiler.
🔬 Minimal Reproduction
Tested on Windows 10:
- Create an empty angular app with
ng new assetsBugApp, - create a folder outside the application like "testAssets"
- Inside "testAssets" create a textfile "works.txt"
- Inside "testAssets" create a folder "myFolder"
- Inside "testAssets/myFolder" create a textfile "does not work.txt"
- Create a junction from "assetsBugApp/src/assets/test" to "testAssets" (eg
mklink /J C:\tmp\assetsBugApp\src\assets\test C:\tmp\testAssets) - Run
ng build - Look in the dist/assets folder. You will find the folder "test" containing "works.txt" but no "myFolder" and no "does not work.txt"
🌍 Your Environment
Angular CLI: 10.1.4
Node: 12.18.3
OS: win32 x64
Angular: 10.1.4
... animations, cli, common, compiler, compiler-cli, core
... elements, forms, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
------------------------------------------------------------
@angular-devkit/architect 0.1001.4
@angular-devkit/build-angular 0.1001.4
@angular-devkit/build-ng-packagr 0.1001.4
@angular-devkit/core 10.1.1
@angular-devkit/schematics 10.1.4
@angular/cdk 10.2.3
@angular/language-service 10.1.1
@angular/material 10.2.3
@schematics/angular 10.1.4
@schematics/update 0.1001.4
ng-packagr 10.1.2
rxjs 6.6.3
typescript 3.9.7
Anything else relevant?
Might be isolated to Windows environments.
Would be great to have this resolved, copying assets from A to B is less fun than linking them... :)
- Linguagem predominante
- TypeScript
- Estrelas
- 27k
- Forks
- 11.8k
- Merge médio
- 17h 25min
- PRs com merge (30d)
- 183
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de angular/angular-cli
-
area: @angular/build gemini-triaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
angular/angular-cli#33955 ·
-
area: @angular/cli gemini-triaged
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
angular/angular-cli#33055 · 1 comentário · 3 reações ·
-
angular/build:library area: @angular/build gemini-triaged
angular/angular-cli#34131 · 1 responsável ·
-
angular/build:library area: @angular/build gemini-triaged
angular/angular-cli#34130 · 1 responsável ·
-
angular/build:library area: @angular/build gemini-triaged
angular/angular-cli#34128 · 1 responsável ·
Todas as issues de angular/angular-cli
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
fil-donadoni/tolaria#4409 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
corsairdev/corsair#1764 ·