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

Fix missing Dockerfile ARG, Update Rust to 1.49.0 #67

Merged
merged 2 commits into from
Nov 22, 2021

Conversation

christopherjreid
Copy link
Contributor

@christopherjreid christopherjreid commented Nov 15, 2021

Docker ARG REPOS_FILE was not redeclared in the "cacher" build stage,
and so was not inheriting the default value specified at the top of the
file. This redeclares the arg in the "cacher" build stage, so that the
default value may be used.

On the specified version of Rust in the Dockerfile (1.47.0), a build error was encountered in rclrs_examples

   error[E0658]: use of unstable library feature 'renamed_spin_loop'
      --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/spin-0.9.2/src/relax.rs:26:9
       |
    26 |         core::hint::spin_loop();
       |         ^^^^^^^^^^^^^^^^^^^^^
       |
       = note: see issue #55002 <https://github.com/rust-lang/rust/issues/55002> for more information
    
       Compiling bitvec v0.19.5
    error: aborting due to previous error

As seen at the given link, updating Rust resolves the issue. 1.48.0 also had build failures, but 1.49.0 passed.

Docker ARG REPOS_FILE was not redeclared in the "cacher" build stage,
and so was not inheriting the default value specified at the top of the
file. This redeclares the arg in the "cacher" build stage, so that the
default value may be used.
rclrs_examples fail to compile due to the following error
```
error[E0658]: use of unstable library feature 'renamed_spin_loop'
  --> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/spin-0.9.2/src/relax.rs:26:9
   |
26 |         core::hint::spin_loop();
   |         ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #55002 <rust-lang/rust#55002> for more information

   Compiling bitvec v0.19.5
error: aborting due to previous error
```

As seen in the noted link, updating Rust can resolve the issue. This
updates Rust in the Dockerfile to 1.49.0, where the issue seems to be
resolved.
@christopherjreid christopherjreid changed the title Fix missing Dockerfile ARG Fix missing Dockerfile ARG, Update Rust to 1.49.0 Nov 15, 2021
Copy link
Collaborator

@esteve esteve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@esteve esteve merged commit 77ae3c1 into ros2-rust:master Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants