flycheck / emacs-travis

Install Emacs on Travis CI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Emacs 26 builds fail when build cache exists

mineo opened this issue · comments

I've created the following repo to show this: https://github.com/mineo/travis-emacstest, the travis page is at https://travis-ci.com/mineo/travis-emacstest. If a build against Emacs 26 with an existing cache is started, it always fails, like https://travis-ci.com/mineo/travis-emacstest/builds/93545069:

 cask install
Importing package-keyring.gpg...
Importing package-keyring.gpg...done
Contacting host: melpa.org:443
Opening TLS connection to ‘melpa.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 melpa.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 melpa.org’...failed
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 melpa.org --protocols ssl3’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 melpa.org --protocols ssl3’...failed
Opening TLS connection to ‘melpa.org’...failed
Failed to download ‘melpa’ archive.
Contacting host: elpa.gnu.org:443
Opening TLS connection to ‘elpa.gnu.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 elpa.gnu.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 elpa.gnu.org’...failed
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 elpa.gnu.org --protocols ssl3’...
Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 elpa.gnu.org --protocols ssl3’...failed
Opening TLS connection to ‘elpa.gnu.org’...failed
Package refresh done
Failed to download ‘gnu’ archive.
Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations
Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations
Package ‘s-’ is unavailable
The command "cask install" failed and exited with 255 during .

Clearing the cache, like from https://travis-ci.com/mineo/travis-emacstest/builds/93543125 to https://travis-ci.com/mineo/travis-emacstest/builds/93543935 fixes this.

I suspect the problem is that

install_emacs: configure_emacs
only adds configure_emacs as a dependency of install_emacs if the cache is empty, but that's incorrect, since this also skips install_emacs's dependency on install_gnutls, which has side effects outside of the cache directory.

@mineo Have you found a workaround?

@cowboyd Unfortunately not. I just clear the cache every once in a while (which, for my emacs package, is only once every few months).

Wouldn't adding a

install_emacs: install_gnutls

line work?