Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis build fails when installing cargo-generate #54

Open
AndrewPomorski opened this issue Sep 11, 2020 · 0 comments
Open

Travis build fails when installing cargo-generate #54

AndrewPomorski opened this issue Sep 11, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@AndrewPomorski
Copy link

AndrewPomorski commented Sep 11, 2020

Describe the Bug

When running a build on travis using the default .travis.yml file, the build fails on before script :

 before_script:
      - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)

Steps to Reproduce

  1. Generate a wasm-pack-template project with
    cargo generate --git https://github.com/rustwasm/wasm-pack-template.git --name my-project

  2. Set up a build on travis CI

  3. push to master, the build will fail

https://travis-ci.org/github/AndrewPomorski/wasm-game-of-life/jobs/726136106/config

Additional info

The error message from Travis build server:

error[E0283]: type annotations needed
  --> /home/travis/.cargo/registry/src/github.com-1ecc6299db9ec823/liquid-0.15.0/src/compiler/parser.rs:88:80
   |
88 |                     Token::Identifier(ref x) => indexes.push(Index::with_key(x.as_ref())),
   |                                                                                ^^^^^^ cannot infer type for struct `std::string::String`
   |
   = note: cannot satisfy `std::string::String: std::convert::AsRef<_>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0283`.
error: could not compile `liquid`.
To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-generate v0.2.2`, intermediate artifacts can be found at `/tmp/cargo-installcA84wZ`

Expected Behavior

The build should pass without having to reconfigure travis.

Actual Behavior

Build fails

@AndrewPomorski AndrewPomorski added the bug Something isn't working label Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant