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(docker): fix Docker build failing #5892

Merged
merged 1 commit into from
Feb 25, 2024
Merged

Conversation

Kesmek
Copy link
Contributor

@Kesmek Kesmek commented Feb 25, 2024

Overview

fix #5891

What is it?

  • Feature / enhancement
  • Bug
  • Docs / tests / types / typos

Description

Docker build was failing from one of wasm-pack's dependencies requiring a newer version of rustc than was provided by the container. I passed the --locked flag to the cargo install command so that the rust packages use their cargo.lock files if available to ensure more reproducible builds.

Note: Another possible fix for #5891 is to upgrade the container's rust toolchain version to >= v1.74 in the docker container. I chose not to use this solution since I'm not familiar with the rust toolchain and I could not determine the possible side effects of upgrading the toolchain version which could possibly contain breaking changes.

Use cases and why

Docker is convenient for creating reproducible builds and streamlining the contribution process. This fix allows Docker to be used again and in a more reproducible manner than before.

Checklist:

  • My code follows the developer guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • Added new tests to cover the fix / functionality

Sorry, something went wrong.

Docker build was failing from one of wasm-pack's dependencies requiring a newer version of rustc
than was provided by the container. I passed the --locked flag to the cargo install command so that
the rust packages use their cargo.lock files if available to ensure more reproducible builds. fixes
QwikDev#5891

fix QwikDev#5891
Copy link

netlify bot commented Feb 25, 2024

👷 Deploy request for qwik-insights pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 4c9803a

Copy link
Member

@gioboa gioboa left a comment

Choose a reason for hiding this comment

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

It looks good to me 😎
Thanks @Kesmek

@gioboa gioboa merged commit 76e09bf into QwikDev:main Feb 25, 2024
22 checks passed
@Kesmek Kesmek deleted the devcontainer-fix branch February 25, 2024 21:44
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.

[🐞] Docker devcontainer build fails
2 participants