Skip to content

Unimplemented short keyword: '_' when Cargo.toml under path starting with _ #14379

Closed
@jemtucker

Description

@jemtucker

Problem

Since rust-1.79 we have been unable to build packages that include build.rs within our rust workspace with cargo due to the following error.

error: failed to determine package fingerprint for build script for foo v0.1.0 (/Users/jemtucker/src/mvp/_code/rust/foo)

Caused by:
  failed to determine the most recently modified file in /Users/jemtucker/src/mvp/_code/rust/foo

Caused by:
  failed to determine list of files in /Users/jemtucker/src/mvp/_code/rust/foo

Caused by:
  Unimplemented short keyword: '_'

Our directory structure is as follows.

.git/...
_code/rust/Cargo.toml
_code/rust/foo/Cargo.toml
_code/rust/foo/build.rs
_code/rust/foo/src/lib.rs

This error occurs when gitoxide is attempting to parse pathspecs of the form :/_code/rust and :!/_code/rust which are invalid.

The fix is to use the non-shorthand pathspec keywords e.g. :(top)_code/rust.

Steps

No response

Possible Solution(s)

No response

Notes

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-gitArea: anything dealing with gitC-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.Z-gitoxideNightly: gitoxide integrationregression-from-stable-to-stableRegression in stable that worked in a previous stable release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions