ancient-stone-50795
07/22/2015, 7:02 PMancient-stone-50795
07/22/2015, 7:02 PM#!/bin/bash
#
# Echos the name of a pem file of CA certs. Creates the
# file if needed.
#
# Linux: There's already a file in /etc
# Mac: Extract the SSL CA certificates from the keychain
set -e
PANTS_BOOTSTRAPDIR=~/.cache/pants
UNAME_S=$(uname -s)
case ${UNAME_S} in
Darwin)
mkdir -p ${PANTS_BOOTSTRAPDIR}
CACERTS_PEM=${PANTS_BOOTSTRAPDIR}/cacerts.pem
security find-certificate -a -p /Library/Keychains/System.keychain > ${CACERTS_PEM}
security find-certificate -a -p /System/Library/Keychains/SystemRootCertificates.keychain >> ${CACERTS_PEM}
;;
Linux)
CACERTS_PEM="/etc/pki/tls/certs/ca-bundle.crt"
;;
*)
echo "*** ${UNAME_S} not supported by this script!" 1>&2
exit 1
esac
echo ${CACERTS_PEM}
ancient-stone-50795
07/22/2015, 7:02 PMancient-stone-50795
07/22/2015, 7:03 PMREQUESTS_CA_BUNDLE
from the output of that script:
export REQUESTS_CA_BUNDLE=$(squarepants/bin/pants_cacerts_bootstrap.sh)
jolly-chef-92794
07/22/2015, 7:04 PM-C-source
and -C-target
that really should trigger a recompile.jolly-chef-92794
07/22/2015, 7:05 PMenough-analyst-54434
07/22/2015, 7:09 PMmammoth-autumn-2551
07/22/2015, 7:10 PMancient-stone-50795
07/22/2015, 7:11 PMmammoth-autumn-2551
07/22/2015, 7:11 PMcertifi
, so that my solve the issue, but doesn’t explain why it showed up in this pants upgradeancient-stone-50795
07/22/2015, 7:12 PMancient-stone-50795
07/22/2015, 7:12 PMmammoth-autumn-2551
07/22/2015, 7:13 PMancient-stone-50795
07/22/2015, 7:14 PMancient-stone-50795
07/22/2015, 7:14 PMcommit d8a8c311085bcc987d3be0b34f5bd73c2e5b2a41
Author: Eric Ayers <zundel@squareup.com>
Date: Sun Mar 8 08:58:11 2015 -0400
Update our requests library to something more recent
I noticed that this library is way behind the current release which is 2.5.3. See <http://docs.python-requests.org/en/latest/community/updates/>
mammoth-autumn-2551
07/22/2015, 7:45 PMpants run
. One of the first things that script does is clean up pants state, which I think blows away the now cached chroot. So downstream code that would load resources would fail (in the case of requests, it would be loading a bundled copy of the root certificate)enough-analyst-54434
07/22/2015, 7:47 PM/pants run ...
-> python code that knows about $CWD/.pants.d and kills it in the middle of pants run?enough-analyst-54434
07/22/2015, 7:49 PMenough-analyst-54434
07/22/2015, 7:51 PM./pants run
- that should still workwitty-crayon-22786
07/22/2015, 8:29 PMwitty-crayon-22786
07/22/2015, 8:29 PMbored-art-40741
07/22/2015, 8:29 PMwitty-crayon-22786
07/22/2015, 8:30 PMjava_library(name='blah', dependencies=[..], excludes=[exclude(x, y)])
bored-art-40741
07/22/2015, 8:30 PMwitty-crayon-22786
07/22/2015, 8:30 PMancient-stone-50795
07/22/2015, 8:57 PMjvm_binary
targets though:
jvm_binary(name='server',
main = 'com.squareup.gns.server.GnsServerApp',
basename= 'gns-server',
dependencies = [
':lib',
':server-signed-jars'
],
manifest_entries = square_manifest({
'Class-Path': 'gns-server-signed-jars/bcprov-jdk15on.jar gns-server-signed-jars/ncipherkm.jar',
}),
deploy_excludes = [
exclude(org='com.squareup.nonmaven', name='ncipherkm'),
exclude(org='org.bouncycastle', name='bcprov-jdk15on')
],
)
witty-crayon-22786
07/22/2015, 8:57 PMwitty-crayon-22786
07/22/2015, 8:58 PMancient-stone-50795
07/22/2015, 8:58 PMenough-analyst-54434
07/22/2015, 8:59 PM