Skip to content

Commit

Permalink
Do not warn about broken .include in infrastructure files
Browse files Browse the repository at this point in the history
It's a temporary measure, as the 2023Q3 branch is too close to edit the
infrastructure files, even though this case is pretty clear.
  • Loading branch information
rillig committed Sep 10, 2023
1 parent 3f30df0 commit 90cfd99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions v23/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,12 @@ func (pkg *Package) checkIncludePath(mkline *MkLine, canonicalRel CurrPath) {
return
}

// TODO: Remove this paragraph after 2023Q3 and fix the affected files
// from the pkgsrc infrastructure.
if !G.Testing && G.Pkgsrc.IsInfra(mkline.Filename()) {
return
}

mkline.Warnf("The path to the included file should be %q.",
mkline.Rel(canonicalRel))
mkline.Explain(
Expand Down

0 comments on commit 90cfd99

Please sign in to comment.