Skip to content

Commit

Permalink
Fix incorrect path shown for UnexpectedFile error
Browse files Browse the repository at this point in the history
The error incorrectly prints the path of the unexpected file to be under
the files sub-directory of a package. We are actually checking for
unexpected files alongside the opam file of a package.
  • Loading branch information
punchagan committed Jul 12, 2024
1 parent b11b27c commit 287c9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lint.ml
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ module Lint = struct
but your opam file only requires dune >= %s. Please check which requirement is the right one, and fix the other."
pkg ver dep
| UnexpectedFile file ->
Fmt.str "Error in %s: Unexpected file in %s/files/%s" pkg (Check.path_from_pkg package) file
Fmt.str "Error in %s: Unexpected file in %s/%s" pkg (Check.path_from_pkg package) file
| ForbiddenPerm file ->
Fmt.str
"Error in %s: Forbidden permission for file %s/%s. All files should have permissions 644."
Expand Down

0 comments on commit 287c9ad

Please sign in to comment.