Skip to content

Commit

Permalink
o/snapstate: leave TODOs about using caller provided context
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Borzecki <[email protected]>
  • Loading branch information
bboozzoo committed Jun 26, 2024
1 parent af01b30 commit 4289150
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions overlord/snapstate/snapstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,7 @@ func InstallPath(st *state.State, si *snap.SideInfo, path, instanceName, channel
target := PathInstallGoal(instanceName, path, si, RevisionOptions{
Channel: channel,
})
// TODO have caller pass a context
info, ts, err := InstallOne(context.Background(), st, target, Options{
Flags: flags,
PrereqTracker: prqt,
Expand Down Expand Up @@ -1635,6 +1636,7 @@ func InstallMany(st *state.State, names []string, revOpts []*RevisionOptions, us
}

target := StoreInstallGoal(snaps...)
// TODO have caller pass a context
infos, tss, err := InstallWithGoal(context.Background(), st, target, Options{
Flags: *flags,
UserID: userID,
Expand Down

0 comments on commit 4289150

Please sign in to comment.