Skip to content

Awesome CI Workflow Code formater: "2 files are not in one and only one directory" but they are in separate branches. #898

Closed
@straight-into-the-wall

Description

@straight-into-the-wall

Hey @Panquesito7 @kvedala,

On my fork's Github Actions I got this error from Awesome CI Workflow Code formatter; even if I separated the two files into two different commits.

2 files are not in one and only one directory:
leetcode/src/1.c
leetcode/src/6.c

Error: Process completed with exit code 2.

Any idea how I could fix it?

Thanx

awesome_error

Originally posted by @straight-into-the-wall in #897 (comment)

Activity

changed the title [-]Hey @Panquesito7 @kvedala,[/-] [+]Awesome CI Workflow Code formater: "2 files are not in one and only one directory" but they are in separate branches.[/+] on Oct 22, 2021
straight-into-the-wall

straight-into-the-wall commented on Oct 24, 2021

@straight-into-the-wall
ContributorAuthor

Now there is only one modified file, but the issue remains the same.
image

Panquesito7

Panquesito7 commented on Oct 24, 2021

@Panquesito7
Member
straight-into-the-wall

straight-into-the-wall commented on Oct 24, 2021

@straight-into-the-wall
ContributorAuthor

Maybe is because I've 2 different PR affecting one folder? (Seems unlikely too me but I've no other clues)

#896

#897

straight-into-the-wall

straight-into-the-wall commented on Oct 24, 2021

@straight-into-the-wall
ContributorAuthor

the failing check code is there:

  nodir_files = [file for file in cpp_files if file.count(os.sep) != 1 and "project_euler" not in file and "data_structure" not in file]
  if nodir_files:
    print(f"{len(nodir_files)} files are not in one and only one directory:")
    print("\n".join(nodir_files) + "\n")
Panquesito7

Panquesito7 commented on Oct 24, 2021

@Panquesito7
Member

Maybe is because I've 2 different PR affecting one folder? (Seems unlikely too me but I've no other clues)

#896

#897

Don't think so, that shouldn't happen. The Leetcode folder is known for having CI issues, AFAIK.

added 7 commits that reference this issue on Oct 25, 2021

12 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @Panquesito7@straight-into-the-wall

      Issue actions

        Awesome CI Workflow Code formater: "2 files are not in one and only one directory" but they are in separate branches. · Issue #898 · TheAlgorithms/C