Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions internal/runbits/reqop_runbit/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ func UpdateAndReload(prime primeable, script *buildscript.BuildScript, oldCommit
if err := script.SetDynamic(false); err != nil {
return errs.Wrap(err, "Setting dynamic failed")
}
// StageCommitAndPoll needs to be called with atTime=now, not the previous script's atTime.
latest, err := model.FetchLatestRevisionTimeStamp(prime.Auth())
if err != nil {
return errs.Wrap(err, "Failed to fetch latest timestamp")
}
script.SetAtTime(latest, true)
}

commitParams := buildplanner.StageCommitParams{
Expand Down
Loading