Skip to content

Commit 3341a15

Browse files
mergify[bot]pkoutsovasilispierrehilbert
authored
[8.17] (backport #8063) ci: disable link-patrol check (#8067)
* ci: disable link-patrol check (#8063) * ci: disable link-patrol check * fix: add issue link for skipping and fix linter issues * fix: remove extra args * fix: revert SerialDeps to Deps in Update (cherry picked from commit 82344c2) # Conflicts: # magefile.go * Update magefile.go --------- Co-authored-by: Panos Koutsovasilis <[email protected]> Co-authored-by: Pierre HILBERT <[email protected]>
1 parent e9852ee commit 3341a15

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

dev-tools/mage/check.go

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,21 @@ func CheckLicenseHeaders() error {
7777
licenser.Check(),
7878
licenser.License("Elasticv2"),
7979
)
80-
8180
}
8281

8382
// CheckLinksInFileAreLive checks if all links in a file are live.
8483
func CheckLinksInFileAreLive(filename string) func() error {
8584
return func() error {
86-
fmt.Printf(">> check: Checking for invalid links in %q\n", filename)
87-
mg.Deps(InstallGoLinkCheck)
85+
// Skip for now until we can make this work without exceeding the GitHub rate limit
86+
// Related: https://github.com/elastic/elastic-agent/issues/8064
87+
return nil
8888

89-
linkcheck := gotool.LinkCheck
90-
return linkcheck(
91-
linkcheck.Path(filename),
92-
)
89+
//fmt.Printf(">> check: Checking for invalid links in %q\n", filename)
90+
//mg.Deps(InstallGoLinkCheck)
91+
//
92+
//linkcheck := gotool.LinkCheck
93+
//return linkcheck(
94+
// linkcheck.Path(filename),
95+
//)
9396
}
9497
}

magefile.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ var (
121121
)
122122

123123
func init() {
124-
common.RegisterCheckDeps(Update, Check.All)
124+
common.RegisterCheckDeps(Update, Check.All, Otel.Readme)
125125
test.RegisterDeps(UnitTest)
126126
devtools.BeatLicense = "Elastic License 2.0"
127127
devtools.BeatDescription = "Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host."
@@ -649,7 +649,7 @@ func commitID() string {
649649

650650
// Update is an alias for executing control protocol, configs, and specs.
651651
func Update() {
652-
mg.SerialDeps(Config, BuildPGP, BuildFleetCfg, Otel.Readme)
652+
mg.Deps(Config, BuildPGP, BuildFleetCfg)
653653
}
654654

655655
func EnsureCrossBuildOutputDir() error {

0 commit comments

Comments
 (0)