set build version to 0.0.0 on Copy

This commit is contained in:
mbecker20
2024-05-04 23:54:09 -07:00
parent 1e8422a506
commit 0efb2966b0

View File

@@ -114,7 +114,7 @@ impl Resolve<CopyBuild, User> for State {
}
let name = to_monitor_name(&name);
let Build {
config,
mut config,
description,
tags,
..
@@ -128,6 +128,8 @@ impl Resolve<CopyBuild, User> for State {
.await
.context("cannot create build using this builder. user must have at least read permissions on the builder.")?;
let start_ts = monitor_timestamp();
// Set version back to default for the new name
config.version = Default::default();
let build = Build {
id: Default::default(),
name,