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

build: complete removal of bazel format yarn commands #37148

Conversation

josephperrott
Copy link
Member

Remove bazel yarn format deprecation message to complete the removal of
formatting bazel related files via yarn command command.

@josephperrott josephperrott added action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project target: patch This PR is targeted for the next patch release area: dev-infra Issues related to Angular's own dev infra (build, test, CI, releasing) labels May 15, 2020
@ngbot ngbot bot modified the milestone: needsTriage May 15, 2020
@pullapprove pullapprove bot requested a review from gkalpak May 15, 2020 23:03
@josephperrott josephperrott force-pushed the bazel-format-deprecation-removal branch from c8998a1 to 50f17e9 Compare May 15, 2020 23:09
@@ -16,9 +16,6 @@
"url": "https://github.com/angular/angular.git"
},
"scripts": {
"bazel:format": "yarn -s ng-dev format deprecation-warning bazel:format",
"bazel:lint": "yarn -s ng-dev format deprecation-warning bazel:lint",
"bazel:lint-fix": "yarn -s ng-dev format deprecation-warning bazel:lint-fix",
Copy link
Contributor

Choose a reason for hiding this comment

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

How about we keep these in here for a bit longer, but instead of displaying a warning, we error?

TBH I didn't catch that we should be now using ng-dev format instead of yarn bazel:format and if this got merged without me randomly opening this PR I wouldn't know what to do next time I need to reformat some files.

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently, we already fail to perform the format and instead instruct the user to run the new command.

Copy link
Contributor

Choose a reason for hiding this comment

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

you are right, I must have been lucky and not have a need to run the script because my IDE formatter does the job and I rarely need to reformat from the command line, but when I do I'd prefer to at least see a comment in package.json under scripts that reminds me to use yarn ng-dev --help instead.

Copy link
Member Author

Choose a reason for hiding this comment

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

Added general note in "scripts" about our increased migration to using ng-dev

Copy link
Contributor

Choose a reason for hiding this comment

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

thank you!

Remove bazel yarn format deprecation message to complete the removal of
formatting bazel related files via yarn command command.
@josephperrott josephperrott force-pushed the bazel-format-deprecation-removal branch from 50f17e9 to 5b004e4 Compare May 20, 2020 15:45
Copy link
Contributor

@IgorMinar IgorMinar left a comment

Choose a reason for hiding this comment

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

LGTM!

@josephperrott josephperrott removed the request for review from gkalpak May 20, 2020 16:09
kara pushed a commit that referenced this pull request May 20, 2020
Remove bazel yarn format deprecation message to complete the removal of
formatting bazel related files via yarn command command.

PR Close #37148
@kara kara closed this in 59e7203 May 20, 2020
@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 Jun 20, 2020
profanis pushed a commit to profanis/angular that referenced this pull request Sep 5, 2020
Remove bazel yarn format deprecation message to complete the removal of
formatting bazel related files via yarn command command.

PR Close angular#37148
@josephperrott josephperrott deleted the bazel-format-deprecation-removal branch August 31, 2023 17:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: build & ci Related the build and CI infrastructure of the project area: dev-infra Issues related to Angular's own dev infra (build, test, CI, releasing) cla: yes target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants