Skip to content

add new validation: repos/archive contains no files #1528

Closed
@marcoieni

Description

@marcoieni

Discussed in #1527 (comment)

I think there are two ways of doing this:

  • add the repo path to the struct Repo contained in the struct Data. In this way we can easily validate that the path is not under repos/archive in the check added in validate archived repos #1527
  • edit the load function and check that all entries of the archive directory aren't files.

I prefer option 1 because it's cleaner and doesn't complicate the "load" method. What do you think?

Unfortunately we can't edit the closure that we pass to load_dir because it only runs on repos under the subdirectories of archive, e.g. repos/archive/rust-lang.

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