Skip to content

Cargo sometimes thinks that an unfresh project is fresh #143

Closed
@TyOverby

Description

@TyOverby

Inside my project called my-piston-project, running cargo build twice in a row yields interesting results. After editing a file, I ran cargo build and it said that my project is fresh. Without doing anything else, I ran cargo build again and it correctly recompiled.

ty@ty-VirtualBox:~/workspace/personal/rust/piston-tutorial$ cargo build
       Fresh gl v0.0.1 (https://github.com/bjz/gl-rs)
       Fresh piston v0.0.0 (https://github.com/PistonDevelopers/piston)
       Fresh glfw v0.0.1 (https://github.com/bjz/glfw-rs)
       Fresh glfw_game_window v0.0.0 (https://github.com/PistonDevelopers/glfw_game_window.git)
       Fresh image v0.0.0 (https://github.com/PistonDevelopers/rust-image)
       Fresh graphics v0.0.0 (https://github.com/PistonDevelopers/rust-graphics.git)
       Fresh opengl_graphics v0.0.0 (https://github.com/PistonDevelopers/opengl_graphics.git)
       Fresh my-piston-project v0.0.0 (file:/home/ty/workspace/personal/rust/piston-tutorial)
ty@ty-VirtualBox:~/workspace/personal/rust/piston-tutorial$ cargo build
       Fresh gl v0.0.1 (https://github.com/bjz/gl-rs)
       Fresh image v0.0.0 (https://github.com/PistonDevelopers/rust-image)
       Fresh graphics v0.0.0 (https://github.com/PistonDevelopers/rust-graphics.git)
       Fresh opengl_graphics v0.0.0 (https://github.com/PistonDevelopers/opengl_graphics.git)
       Fresh piston v0.0.0 (https://github.com/PistonDevelopers/piston)
       Fresh glfw v0.0.1 (https://github.com/bjz/glfw-rs)
       Fresh glfw_game_window v0.0.0 (https://github.com/PistonDevelopers/glfw_game_window.git)
   Compiling my-piston-project v0.0.0 (file:/home/ty/workspace/personal/rust/piston-tutorial)

This is the 3rd or 4th time this has happened to me, but because I tried to force it to recompile other times (by touching files in the project) there wasn't a clear bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions