Skip to content

Build failure: aws-smithy-runtime v1.7.8 ownership errors in auth.rs preventing Mononoke compilation AQ #1120

@thomsonberg63-gif

Description

@thomsonberg63-gif

sapling/commit/103fba8e283f6c21bc24f35797b9774e371c319e

Problem Description

The Mononoke build is failing both locally and in GitHub Actions with Rust ownership errors in the aws-smithy-runtime v1.7.8 dependency.

Error Details

Error Location: aws-smithy-runtime-1.7.8/src/client/orchestrator/auth.rs:135

Error Type:

  • E0507: cannot move out of a shared reference
  • E0382: use of moved value: scheme_id

Root Cause:
The AuthSchemeId type does not implement the Copy trait, but the code attempts to use the value multiple times after it has been moved.

Reproduction

This error occurs consistently when building Mononoke components that depend on AWS services:

cargo build --workspace -j4 --out-dir /tmp/build/mononoke/bin -Zunstable-options --release



It's not directly about AWS but if I --- build/fbcode_builder/getdeps.py

# Basic build command  
python3 build/fbcode_builder/getdeps.py build mononoke  or run build.sh only

##UnitTest Github Actions
If you want to read the log of the Github action in more detail, here is a link:
https://github.com/thomsonberg63-gif/sapling/actions/runs/17252293167

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