Skip to content

git clean deletes ts client #6845

@Tratcher

Description

@Tratcher

git clean -xdf keeps deleting src\SignalR\clients\ts\signalr and src\SignalR\clients\ts\signalr-protocol-msgpack

Repro steps:

  • build /t:restore (runs npm install)
  • dir /al /s (shows those folders as hard junctions from \src\SignalR\clients\ts\FunctionalTests\node_modules\@aspnet)
  • git clean -xdf (those folders get deleted)
  • git status (git shows those folders as deleted)

This happens because we've configured a junction between src\SignalR\clients\ts\FunctionalTests\node_modules\@aspnet\signalr and src\SignalR\clients\ts\signalr (how?) and node_modules/ is in the .gitignore file. When git clean clears the node_modules dir it follows the junction and deletes the client as well.

Proposal: can we populate the node_modules\@aspnet\signalr folder via some other mechanism besides using a junction? E.g. manually copy the files?

Open question: Where is this junction configured? Is it this?
https://github.com/aspnet/AspNetCore/blob/89a7f3cf774d46eaaea26861744a224a6487f31c/src/SignalR/clients/ts/tsconfig.base.json#L21-L28

@davidfowl @BrennanConroy @anurse

Metadata

Metadata

Assignees

Labels

area-signalrIncludes: SignalR clients and serverstask

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions