Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

fmt action with a specified manifest located in a sub-folder did not find the parent folder rustfmt.toml config #197

Open
2 of 3 tasks
galop1n opened this issue Dec 15, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@galop1n
Copy link

galop1n commented Dec 15, 2021

Do the checklist before filing an issue:

Description

I am running the action-rs fmt action with a specified manifest in a subdir --manifest-path ./2021/Cargo.toml and the action fail at finding the rustfmt.toml file that is in the parent folder, leading to the formating check to fail

Workflow code

fmt:
    name: Rustfmt
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: stable
          override: true
      - run: rustup component add rustfmt
      - uses: actions-rs/cargo@v1
        with:
          command: fmt
          args: --manifest-path ./2021/Cargo.toml --all -- --check 

Action output

Run actions-rs/cargo@v1
  with:
    command: fmt
    args: --manifest-path ./2021/Cargo.toml --all -- --check
    use-cross: false
/home/runner/.cargo/bin/cargo fmt --manifest-path ./2021/Cargo.toml --all -- --check
Diff in /home/runner/work/advent-of-code/advent-of-code/2021/src/common.rs at line 7:
 /// ```
 pub fn cartesian<I, E>(a: I, b: I) -> impl Iterator<Item = (E, E)>
 where

Expected behavior

The rustfmt command should be able to pull the config from the parent folder.

@galop1n galop1n added the bug Something isn't working label Dec 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant