Skip to content
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

Add clean.ps1 and clean.sh #11154

Merged
merged 3 commits into from
Jun 13, 2019
Merged

Add clean.ps1 and clean.sh #11154

merged 3 commits into from
Jun 13, 2019

Conversation

dougbu
Copy link
Member

@dougbu dougbu commented Jun 12, 2019

@dougbu dougbu requested review from Tratcher and a team June 12, 2019 21:03
clean.sh Outdated

# This incantation avoids unbound variable issues if git_args is empty
# https://stackoverflow.com/questions/7577052/bash-empty-array-expansion-with-set-u
git clean -dix -e .dotnet/ -e .tools/ -e src/SignalR/clients/ts/FunctionalTests/node_modules/ ${git_args[@]+"${git_args[@]}"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
git clean -dix -e .dotnet/ -e .tools/ -e src/SignalR/clients/ts/FunctionalTests/node_modules/ ${git_args[@]+"${git_args[@]}"}
git clean -dix -e .dotnet/ -e .tools/ ${git_args[@]+"${git_args[@]}"}

Git on non-Windows handles symlinks correctly, so we don't need this exclusion :)

Copy link
Contributor

@natemcmaster natemcmaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine to me. Would be good to get @Tratcher's approval -- he was one of the devs requesting this.

@Tratcher
Copy link
Member

That looks helpful. How about cmd? We have cmd for most other common commands.

@analogrelay analogrelay added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jun 12, 2019
@dougbu
Copy link
Member Author

dougbu commented Jun 12, 2019

Took your suggestion @Tratcher

@dougbu
Copy link
Member Author

dougbu commented Jun 13, 2019

Another now-standard timeout of the build. Merging since issue can't be related to these three new files.

@dougbu dougbu merged commit 852680f into master Jun 13, 2019
@ghost ghost deleted the dougbu/clean.10463 branch June 13, 2019 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants