- 
                Notifications
    
You must be signed in to change notification settings  - Fork 59
 
🌱Allow passing private NPM registry for quicktype install #1199
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
base: main
Are you sure you want to change the base?
🌱Allow passing private NPM registry for quicktype install #1199
Conversation
6e81615    to
    e7b6d56      
    Compare
  
    | NPM_FLAGS := | ||
| ifneq ($(strip $(NPM_REGISTRY)),) | ||
| # Registry set (no token required) | ||
| NPM_REGISTRY := $(NPM_REGISTRY:https://%=%) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a shell replacement? Instead of doing that, use Makefile text manipulation so what is emitted to the shell is absolute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I double checked, it's GNU Make's pattern substitution reference.
        
          
                hack/quicktype/Makefile
              
                Outdated
          
        
      | 
               | 
          ||
| # If a token is provided, add auth | ||
| ifneq ($(strip $(NPM_TOKEN)),) | ||
| NPM_FLAGS += --//$(NPM_REGISTRY):_authToken=$(NPM_TOKEN) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a shell replacement? Instead of doing that, use Makefile text manipulation so what is emitted to the shell is absolute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one doesn't do any shell replacement, just the weird npm flag
e7b6d56    to
    f6d9515      
    Compare
  
    
          
 Minimum allowed line rate is   | 
    
What does this PR do, and why is it needed?
There might be time a private npm registry is preferred, and it might require auth. Added two new variables that could be passed when running
make generate-go/make-generate.Are there any special notes for your reviewer:
Tested:
Please add a release note if necessary: