-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Managed to finally get my hands on a relevant log entry and saw: ``` {"level":"error","github_event_type":"pull_request","github_delivery_id":"<omitted>","error":"Failed to `find` latest docs version to generate cobradocs preview for vitessio/vitess#14789: exit status 1\nstderr: find: unknown predicate `-sE'\n\nstdout: ","time":"2024-01-24T13:13:22Z","message":"Unexpected error handling webhook"} ``` So, we need to remove `-sE` on unix, but not on darwin. `-E` _before_ the path is replaced by `-regextype posix-extended` _after_ the path. There is no replacement for `-s` on non-darwin unix, so we now need to pipe to `sort` to sort in dictionary order. Signed-off-by: Andrew Mason <[email protected]>
- Loading branch information
Andrew Mason
committed
Jan 24, 2024
1 parent
fb8a75e
commit 30c5f91
Showing
4 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
//go:build darwin | ||
|
||
package shell | ||
|
||
func init() { | ||
globalRegexpOpt = "-E" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//go:build unix && !darwin | ||
|
||
package shell | ||
|
||
func init() { | ||
regexpTypeOpt = []string{ | ||
// This is not a typo. It is "regexp" in goland and "regex" in POSIX land. ¯\_(ツ)_/¯ | ||
"-regextype", | ||
"posix-extended", | ||
} | ||
} |