MM-19048: avoid error spam during CI builds (#12626)
Detect the IS_CI flag and skip trying to rewrite subpaths that won't necessarily exist.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1ad0cb646f
Коммит
ff160a4d32
@@ -148,6 +148,12 @@ func UpdateAssetsSubpathFromConfig(config *model.Config) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Similarly, don't rewrite during a CI build, when the assets may not even be present.
|
||||
if os.Getenv("IS_CI") == "true" {
|
||||
mlog.Debug("Skipping update to assets subpath since CI build")
|
||||
return nil
|
||||
}
|
||||
|
||||
subpath, err := GetSubpathFromConfig(config)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Ссылка в новой задаче
Block a user