Hey, with the previous pants script I could use th...
# general
m
Hey, with the previous pants script I could use the PANTS_SHA environment variable to use a commit from
pantsbuild
repository. It seems that is not possible with the new
scie-pants
. Any other way to achieve that?
b
Heya, sorry for the trouble, we stopped publishing the artifacts required for
PANTS_SHA
to work quite a while ago, so it doesn't work on any recent commits. Hence we phased out support from
scie-pants
(deprecated in 0.10.0, removed in 0.11.0). What are you using it for? Some options are: 1. stick to the
pants
script or
scie-pants
0.9.3 and continue using
PANTS_SHA
2. use
PANTS_SOURCE
instead, pointing to a checkout of the Pants repo appropriate commit (works with newer commits too, but requires building pants)
m
thanks, we would probably just wait for 20.2.4
our CI takes very long time now (1 hour instead of 5 minutes) and not utilizing the remote cache.
h
I will get RCs for those out today
m
🙏
h
Well, when CI cooperates and I can merge
we’re waiting on a couple more things for 2.22.x
Ugh, CI is being awful right now
I’ve fixed at least the MacOS ARM CI shards, so the RC is merged and I have kicked off the publish, so look for 2.20.4rc0 announcements in #C18RRR4JK soon.
m
following could be a nice addition to the pants-init plugin:
Copy code
name: Allow running pants from source
description: |
  Checkout pants and run from source
inputs: 
  enable:
    required: false
    default: 'false'
  repository:
    required: false
    default: 'pantsbuild/pants'
  ref:
    required: false
    default: 'main'
  path: 
    required: false
    default: './.pants-source'
runs:
  using: "composite"  
  steps:   
    - shell: bash
      if: ${{ inputs.enable == 'true' }}
      run: sudo apt-get install protobuf-compiler
    - uses: actions/checkout@v4
      if: ${{ inputs.enable == 'true' }}
      with:
        repository: ${{ inputs.repository }}
        ref: ${{ inputs.ref }}
        path: ${{ inputs.path }}
    - name: Tell pants to use from source
      if: ${{ inputs.enable == 'true' }}
      shell: bash
      run: |
        echo "PANTS_SOURCE=${{ inputs.path }}" >> ${GITHUB_ENV}