Skip to content

Commit

Permalink
Clarify that bit-width is not needed everywhere.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Dec 15, 2023
1 parent 021913e commit 6d5aa3a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion internal/runners/languages/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/runners/packages/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion internal/runners/packages/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6d5aa3a

Please sign in to comment.