Change PKR_GITHUB_API_TOKEN to PACKER_GITHUB_API_TOKEN to stay consistent with other env var settings (#10588)

This commit is contained in:
Adrien Delorme 2021-02-11 13:54:25 +01:00 committed by GitHub
parent 2c08479825
commit 37769c2b95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ import (
) )
const ( const (
ghTokenAccessor = "PKR_GITHUB_API_TOKEN" ghTokenAccessor = "PACKER_GITHUB_API_TOKEN"
defaultUserAgent = "packer-plugin-getter" defaultUserAgent = "packer-plugin-getter"
) )

View File

@ -28,7 +28,7 @@ per hour one IP can
do](https://docs.github.com/en/developers/apps/rate-limits-for-github-apps#normal-user-to-server-rate-limits). do](https://docs.github.com/en/developers/apps/rate-limits-for-github-apps#normal-user-to-server-rate-limits).
Packer will do its best to avoid hitting those limits and in an average local Packer will do its best to avoid hitting those limits and in an average local
usage this should not be an issue. Otherwise you can set the usage this should not be an issue. Otherwise you can set the
`PKR_GITHUB_API_TOKEN` env var in order to get more requests per hour. Go to `PACKER_GITHUB_API_TOKEN` env var in order to get more requests per hour. Go to
your personal [access token page](https://github.com/settings/tokens) to your personal [access token page](https://github.com/settings/tokens) to
generate a new token. generate a new token.

View File

@ -110,9 +110,9 @@ each can be found below:
- `PACKER_CONFIG_DIR` - The location for the home directory of Packer. See - `PACKER_CONFIG_DIR` - The location for the home directory of Packer. See
[Packer's home directory](#packer-s-home-directory) for more. [Packer's home directory](#packer-s-home-directory) for more.
- `PKR_GITHUB_API_TOKEN` - When using Packer init on HCL2 templates, Packer - `PACKER_GITHUB_API_TOKEN` - When using Packer init on HCL2 templates, Packer
queries the public API from Github which limits the ammount of queries on can queries the public API from Github which limits the ammount of queries on can
set the `PKR_GITHUB_API_TOKEN` with a Github Token to make it higher. set the `PACKER_GITHUB_API_TOKEN` with a Github Token to make it higher.
- `PACKER_LOG` - Setting this to any value other than "" (empty string) or - `PACKER_LOG` - Setting this to any value other than "" (empty string) or
"0" will enable the logger. See the [debugging "0" will enable the logger. See the [debugging