Change PKR_GITHUB_API_TOKEN to PACKER_GITHUB_API_TOKEN to stay consistent with other env var settings (#10588)
This commit is contained in:
parent
2c08479825
commit
37769c2b95
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue