dpc / rustyhex

Simple roguelike written in Rust language.
MIT License
93 stars 13 forks source link

Fix build #23

Open virtualritz opened 6 years ago

virtualritz commented 6 years ago
$ cargo build
    Updating git repository `https://github.com/bjz/cgmath-rs`
    Updating git repository `https://github.com/gfx-rs/gfx-rs/`
    Updating git repository `https://github.com/bjz/gl-rs`
error: failed to load source for a dependency on `gl`

Caused by:
  Unable to update https://github.com/bjz/gl-rs#79cd3b3f

Caused by:
  failed to update submodule `deps/khronos-api`

Caused by:
  object not found - no match for id (26330994c92f93330adef22cf0562a2700256689); class=Odb (9); code=NotFound (-3)
rmNyro commented 5 years ago

Try removing the Cargo.lock file, it worked for me.

After that some dependencies are broken so here is the new working Cargo.toml file :

[package]

name = "rustyhex"
version = "0.0.3"
authors = [ "dpc@ucore.info" ]

[[bin]]
name = "rustyhex"
path = "src/main.rs"

[dependencies.piston]
git = "https://github.com/pistondevelopers/piston/"

[dependencies.gfx]
# - New deprecated repo
git = "https://github.com/gfx-rs/gfx"
# - You need to specify the branch before the changes
branch = "pre-ll"
# - Old removed repo
# git = "https://github.com/gfx-rs/gfx-rs/"

[dependencies.gl]
git = "https://github.com/bjz/gl-rs"

[dev_dependencies.glfw]
git = "https://github.com/bjz/glfw-rs.git"

# - Seems that this dep has been merged into piston lib
# [dependencies.glfw_window]
# git = "https://github.com/PistonDevelopers/glfw_window"

[dependencies.cgmath]
git = "https://github.com/bjz/cgmath-rs"

[dependencies.hex2d]
git = "https://github.com/dpc/hex2d-rs"

[dependencies.obj-rs]
# - New working repo
git = "https://github.com/simnalamburt/obj-rs"
# - Old now non existent repo
# git = "https://github.com/csherratt/obj-rs.git"