Skip to content

Fix missing Dockerfile ARG, Update Rust to 1.49.0 - #67

Merged
esteve merged 2 commits into
ros2-rust:masterfrom
christopherjreid:fix/dockerfile-arg
Nov 22, 2021
Merged

esteve merged 2 commits into
ros2-rust:masterfrom
christopherjreid:fix/dockerfile-arg

Conversation

@christopherjreid

@christopherjreid christopherjreid commented Nov 15, 2021 •

Copy link
Copy Markdown
Contributor

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

@esteve esteve left a comment

Copy link
Copy Markdown
Collaborator

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