Skip to content

cargo build --features dev fails with E0277 in helix-container/src/queries.rs during Fly.io deployment #662

@james-3rdbrain

Description

@james-3rdbrain

Summary

Docker build fails during Fly.io deployment with exit code 101. The Rust compiler reports "could not compile helix-container (bin "helix-container") due to 2 previous errors; 107 warnings emitted". The errors are related to the E0277 error code in helix-container/src/queries.rs involving remapping_vals variables.

Environment

  • OS: Windows 10 Pro (Build 19045)
  • Docker version: 28.5.1, build e180ab8
  • Local Rust version: 1.90.0
  • Local Cargo version: 1.90.0
  • Deployment target: Fly.io

Configuration (helix.toml)

[project]
name = "helix-newsroom"
queries = "./db/"

[cloud.production.fly]
build_mode = "dev"
vm_size = "shared-cpu-4x"

Steps to Reproduce

  1. Create a HelixDB project with helix.toml configured for Fly.io deployment
  2. Run helix push production
  3. Docker build fails during the cargo compilation step

Build Error

The build fails at the Docker step:

RUN cargo build --features dev --package helix-container

Full Error Log

#19 10.80 warning: unused variable: `remapping_vals`
#19 10.80     --> helix-container/src/queries.rs:2481:9
#19 10.80      |
#19 10.80 2481 | let mut remapping_vals = RemappingMap::new();
#19 10.80      |         ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_remapping_vals`
#19 10.80
#19 10.80 warning: variable does not need to be mutable
#19 10.80     --> helix-container/src/queries.rs:2481:5
#19 10.80      |
#19 10.80 2481 | let mut remapping_vals = RemappingMap::new();
#19 10.80      |     ----^^^^^^^^^^^^^^
#19 10.80      |     |
#19 10.80      |     help: remove this `mut`
#19 10.80
#19 10.88 For more information about this error, try `rustc --explain E0277`.
#19 10.90 warning: `helix-container` (bin "helix-container") generated 107 warnings
#19 10.90 error: could not compile `helix-container` (bin "helix-container") due to 2 previous errors; 107 warnings emitted
#19 ERROR: process "/bin/sh -c cargo build --features dev --package helix-container" did not complete successfully: exit code: 101

Multiple similar warnings appear for lines: 2303, 2323, 2344, 2368, 2391, 2415, 2435, 2456, and 2481 - all involving unused or unnecessarily mutable remapping_vals variables.

Expected Behavior

The Docker build should complete successfully when deploying to Fly.io.

Additional Notes

The error mentions E0277 (trait bounds issue), but the log excerpt only shows warnings about unused/mutable variables. The actual E0277 errors that cause the compilation failure are not visible in this portion of the log.

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