flycheck / emacs-travis

Install Emacs on Travis CI
56 stars 13 forks source link

Emacs 26 builds fail when build cache exists #22

Open mineo opened 5 years ago

mineo commented 5 years ago

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 https://github.com/flycheck/emacs-travis/blob/f72e74ac6c3c6bf9042c72deee22f2a3a3e596cf/emacs-travis.mk#L159 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.

cowboyd commented 5 years ago

@mineo Have you found a workaround?

mineo commented 5 years ago

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

npostavs commented 5 years ago

Wouldn't adding a

install_emacs: install_gnutls

line work?