Snap of Gutenberg

A PR was made to add snapcraft support to it (https://github.com/Keats/gutenberg/pull/299) but the build server uses snapcraft cleanbuild that fails while a dependency try to call git in its build (https://github.com/compass-rs/sass-rs/blob/master/sass-sys/build.rs#L132-L134). Apparently, the snapcraft command builds find but I can’t get snapcraft itself installed on my distro to test so it’s not really easy to debug.

I can only put 2 links in the post but the snapcraft.yml is at the root of the master branch of the repo.

Any help appreciated!

Not familiar with the rust plugin though, but adding git-core package to the build-packages keyword might work.

The build works on local due to the fact that Git is already installed on the host, but in cleanbuild it is processed in an explicitly clean Ubuntu Core LXD container, which won’t have all the necessary dependencies to build a package, which must be enumerated manually.

Encountered this one as well:

…and then this one:

 Downloading cfg-if v0.1.3                                                     
warning: spurious network error (2 tries remaining): failed to get 200 response from `https://crates.io/api/v1/crates/cfg-if/0.1.3/download`, got 500
warning: spurious network error (1 tries remaining): failed to get 200 response from `https://crates.io/api/v1/crates/cfg-if/0.1.3/download`, got 500
error: unable to get packages from source

Maybe https://github.com/rust-lang/rust/issues/41545 ?

Attempt to fix snap package clean build by Lin-Buo-Ren · Pull Request #322 · Keats/gutenberg

There was some 500 from crates.io yesterday (https://twitter.com/cratesiostatus/status/1010961388183752704) so it’s probably that

1 Like