Cache step will fail if no ca-certificates

cache

#1

The cache save/restore steps will fail if CA certificates are not installed in the docker image. You probably should warn about that, in similar way there is a warning about no git.

The error is quite confusing:

Skipping cache - error checking storage: RequestError: send request failed
caused by: Get https://circle-production-customer-artifacts.s3.amazonaws.com/?list-type=2&prefix=picard%2F5658dfe7b386fd0af57c7620%2Fglobal%2Fcaches%2Fdeps-Y3V_LssA6jFgKLt8Zfv0rR0Ww1GqyYTHJUy8AXpe4eM%3D: x509: failed to load system roots and no roots provided

#2

Awesome feedback. Opening a bug ticket internally.
Thanks!


#4

Also git by https does not work if no CA certificates in the system/image.


#5

I’m not sure if something has changed since this thread was started, but I just got bit by this in an entirely new way.

In a container without CA certificates the cache restore just runs forever (I have a build that ran for 67 hours before being canceled). The cache restore step would begin, then would enter an infinite loop with no output.


#6