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

Unlock boilerplate #42

Open
shelane opened this issue Apr 23, 2022 · 0 comments
Open

Unlock boilerplate #42

shelane opened this issue Apr 23, 2022 · 0 comments
Assignees

Comments

@shelane
Copy link
Member

shelane commented Apr 23, 2022

It would be really great if we don't need to commit the vendor directory and keep the lock file up-to-date so that whenever a user initiates a new project from this boilerplate, they will get the latest packages available based on composer version/package requirements. This may be occasionally updating the composer.json file, but that is far less onerous.

I attempted to do this locally, but got the error:

Loading composer repositories with package information                                                                                                                                             GitHub API limit (0 calls/hr) is exhausted, could not fetch https://api.github.com/repos/getgrav/PHP-Markdown-Documentation-Generator/contents/composer.json?ref=8ae1f878ec6f8045899a9bc50029dada1017d616. Create a GitHub OAuth token to go over the API rate limit. You can also wait until ? for the rate limit to reset.

When working with _public_ GitHub repositories only, head to https://github.com/settings/tokens/new?scopes=&description=Composer+on+cli+2022-04-23+1735 to retrieve a token.
This token will have read-only permission for public information only.
When you need to access _private_ GitHub repositories as well, go to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+cli+2022-04-23+1735
Note that such tokens have broad read/write permissions on your behalf, even if not needed by Composer.
Tokens will be stored in plain text in "/home/docker/.composer/auth.json" for future use by Composer.
For additional information, check https://getcomposer.org/doc/articles/authentication-for-private-packages.md#github-oauth
Token (hidden): 
Deprecation Notice: trim(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/local/bin/composer2/src/Composer/Util/GitHub.php:104
No token given, aborting.
You can also add it manually later by using "composer config --global --auth github-oauth.github.com <token>"
                                             
  [Composer\Downloader\TransportException]   
  Could not authenticate against github.com  
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