famous-river-94971
01/12/2023, 6:31 PMpants
? I use CodeArtifact for a private PyPi repository, so I need CODEARTIFACT_AUTH_TOKEN
to be set in the environment. It'd be pretty cool if I could somehow hook into the bootstrap process to:
• check if the CODEARTIFACT_AUTH_TOKEN
environment variable is set.
◦ if so, continue
◦ if not, set it
▪︎ upon failure, throw an error message telling the dev what to do
Is this possible? Thanks!fast-nail-55400
01/12/2023, 6:32 PM,/pants
script can always be customized for your reposiory.famous-river-94971
01/12/2023, 6:33 PMloud-laptop-17949
01/12/2023, 6:34 PM.pants.bootstrap
./pants
scriptfast-nail-55400
01/12/2023, 6:34 PMloud-laptop-17949
01/12/2023, 6:35 PMfast-nail-55400
01/12/2023, 6:42 PM./pants
script lives in its own repo: https://github.com/pantsbuild/setup/blob/gh-pages/pantsbitter-ability-32190
01/12/2023, 6:51 PMenough-analyst-54434
01/12/2023, 10:51 PMfamous-river-94971
01/13/2023, 5:56 PM.gitignore
excludes this file: https://www.pantsbuild.org/docs/initial-configuration (see step 4 which recommends):
# Pants workspace files
/.pants.*
/dist/
/.pids
# Pants workspace files
/.pants.*
!.pants.bootstrap
/dist/
/.pids
Should the docs be updated?loud-laptop-17949
01/13/2023, 5:58 PMfamous-river-94971
01/13/2023, 5:58 PMbitter-ability-32190
01/13/2023, 5:59 PMfamous-river-94971
01/13/2023, 6:00 PMenough-analyst-54434
01/13/2023, 6:16 PMfamous-river-94971
01/13/2023, 6:16 PMenough-analyst-54434
01/13/2023, 6:17 PMfamous-river-94971
01/13/2023, 6:18 PMenough-analyst-54434
01/13/2023, 6:21 PM