https://pantsbuild.org/ logo
#development
Title
# development
f

fast-nail-55400

04/12/2021, 8:55 PM
seeing the following error in a github action:
Copy code
Note: AWS CLI version 2, the latest major version of the AWS CLI, is now stable and recommended for general use. For more information, see the AWS CLI version 2 installation instructions at: <https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html>
/__w/pants/pants
fatal error: Unable to locate credentials
Traceback (most recent call last):
  File "./build-support/bin/deploy_to_s3.py", line 59, in <module>
    main()
  File "./build-support/bin/deploy_to_s3.py", line 16, in main
    deploy()
  File "./build-support/bin/deploy_to_s3.py", line 49, in deploy
    check=True,
  File "/opt/python/cp37-cp37m/lib/python3.7/subprocess.py", line 512, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['aws', 's3', 'sync', '--size-only', '--acl', 'public-read', 'dist/deploy', '<s3://binaries.pantsbuild.org>']' returned non-zero exit status 1.
https://github.com/tdyas/pants/runs/2327413673?check_suite_focus=true
Maybe we should disable that wheel-building action when running a build in a fork?
h

hundreds-father-404

04/12/2021, 8:57 PM
Yeah we don't want any fork builds to happen, it's a waste of trees/energy. Idk how to do that tho, to only have pantsbuild/pants CI run