From 6d5aa3a252d703c5fa8a1975069357a8e6a497f1 Mon Sep 17 00:00:00 2001 From: mitchell Date: Fri, 15 Dec 2023 17:13:41 -0500 Subject: [PATCH] Clarify that bit-width is not needed everywhere. --- internal/runners/languages/install.go | 9 ++++++++- internal/runners/packages/install.go | 2 +- internal/runners/packages/uninstall.go | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/internal/runners/languages/install.go b/internal/runners/languages/install.go index 3312512a9f..e7f6c2cbd7 100644 --- a/internal/runners/languages/install.go +++ b/internal/runners/languages/install.go @@ -70,7 +70,14 @@ func (u *Update) Run(params *UpdateParams) error { return errs.Wrap(err, "Could not create requirement operation.") } - err = op.ExecuteRequirementOperation(lang.Name, lang.Version, 0, bpModel.OperationAdded, nil, &model.NamespaceLanguage, nil) + err = op.ExecuteRequirementOperation( + lang.Name, + lang.Version, + 0, // bit-width placeholder that does not apply here + bpModel.OperationAdded, + nil, + &model.NamespaceLanguage, + nil) if err != nil { return locale.WrapError(err, "err_language_update", "Could not update language: {{.V0}}", lang.Name) } diff --git a/internal/runners/packages/install.go b/internal/runners/packages/install.go index b5c7d1b1f8..2a137521f5 100644 --- a/internal/runners/packages/install.go +++ b/internal/runners/packages/install.go @@ -42,7 +42,7 @@ func (a *Install) Run(params InstallRunParams, nsType model.NamespaceType) (rerr return requirements.NewRequirementOperation(a.prime).ExecuteRequirementOperation( params.Package.Name, params.Package.Version, - 0, + 0, // bit-width placeholder that does not apply here bpModel.OperationAdded, ns, nsTypeV, diff --git a/internal/runners/packages/uninstall.go b/internal/runners/packages/uninstall.go index 272d5ba054..3cce2644a7 100644 --- a/internal/runners/packages/uninstall.go +++ b/internal/runners/packages/uninstall.go @@ -45,7 +45,7 @@ func (u *Uninstall) Run(params UninstallRunParams, nsType model.NamespaceType) ( return requirements.NewRequirementOperation(u.prime).ExecuteRequirementOperation( params.Package.Name, "", - 0, + 0, // bit-width placeholder that does not apply here bpModel.OperationRemoved, ns, nsTypeV,