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.
Этот коммит содержится в:
Jesse Hallam
2019-10-17 09:55:02 -03:00
коммит произвёл GitHub
родитель 1ad0cb646f
Коммит ff160a4d32
2 изменённых файлов: 44 добавлений и 4 удалений

Просмотреть файл

@@ -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