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

[rush] Unable to initiate working in rushstack repo (using "rush update") #3658

Closed
Luxcium opened this issue Sep 28, 2022 · 3 comments
Closed

Comments

@Luxcium
Copy link
Contributor

Luxcium commented Sep 28, 2022

I feel pretty doomed

I am trying my best to quickly learn how to use that stack and it seems that I am falling into a deep rabbit hole... I do not really know if my complaints are valuable for you I want it to work for me but at the same time, I want to bring constructive pieces of information about my experience. I hope I did not overlook something obvious as I have opened a few complaints 😅 issues in the last 2 days.

Summary

I am getting an error message despite apparently following what it is asked in the error message:
Screenshot_000001_20220927_213420

❯ git config --local user.name "<NAME>"
git config --local user.email "[email protected]"
rush update


Rush Multi-Project Build Tool 5.76.1 - https://rushjs.io
Node.js version is 16.17.1 (LTS)


Starting "rush update"

Checking Git policy for this repository.

Hey there!  To keep things tidy, this repo asks you to submit your Git commits using an email like this pattern:

    [^@]+@users\.noreply\.github\.com

 #  .................<REDACTED>.................

To fix it, you can use commands like this:

    git config --local user.name "Mr. Example"
    git config --local user.email "[email protected]"

Aborting, so you can go fix your settings.  (Or use --bypass-policy to skip.)

Repro steps

After gh repo clone microsoft/rushstack; cd rushstack
did rush update

with:
git config --get --local user.email

<REDACTED>

git config --get --local user.name

<REDACTED>

Expected result:

Starting "rush update"

Actual result:

Aborting, so [ I ] can go fix [ my ] settings.

Details

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/rush globally installed version? 5.79.0
rushVersion from rush.json? 5.78.1
useWorkspaces from rush.json? true
Operating system? GNU/Linux
Would you consider contributing a PR? No
Node.js version (node -v)? 16.17.1
@Luxcium
Copy link
Contributor Author

Luxcium commented Sep 28, 2022

I probably should learn how to read:

(Note: if you don't have a GitHub email configured, add the --bypass-policy option.)

I know how to overcome the problem but I do have an email configured so I think my issue is still relevant?

Also I still hope to have some insight about my overall question regarding the documentation and how I could be helpful for this project and how I could learn beyond what the documentation explains...

@iclanton
Copy link
Member

The error message is saying that your email doesn't match the expected pattern (which is [^@]+@users\.noreply\.github\.com). If you run git config --local user.email "[email protected]" inside the repo, the issue will be resolved.

This repo (https://github.com/microsoft/rushstack) requires that users use their GitHub username pseudo-emails to avoid someone accidentally making a commit and including their personal or work email in the Git history. See docs here: https://rushjs.io/pages/maintainer/setup_policies/#allowedemailregexps-avoiding-private-e-mail-addresses

@Luxcium
Copy link
Contributor Author

Luxcium commented Sep 30, 2022

oh oops, thanks (I was reading without my eyes sorry)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants