in internal/gitlab/asset_marshaller.go [85:102]
func ensureUsingDirectAssetPath(link *Link) error {
if link.Filepath == "" {
// There is no deprecated filepath set, so we are good.
return nil
}
if link.DirectAssetPath != "" {
// Both, filepath and direct_asset_path are set, so we have a conflict
return ConflictDirectAssetPathError
}
// We use the set filepath as direct_asset_path
// and clear the filepath to net send it via API.
link.DirectAssetPath = link.Filepath
link.Filepath = ""
return nil
}