File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -190,10 +190,6 @@ var nixPlatforms = []string{
190
190
"armv7l-linux" ,
191
191
}
192
192
193
- func SupportedPlatforms () []string {
194
- return nixPlatforms
195
- }
196
-
197
193
// EnsureValidPlatform returns an error if the platform is not supported by nix.
198
194
// https://nixos.org/manual/nix/stable/installation/supported-platforms.html
199
195
func EnsureValidPlatform (platforms ... string ) error {
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import (
13
13
14
14
"github.com/fatih/color"
15
15
"github.com/pkg/errors"
16
- "github.com/samber/lo"
17
16
"go.jetpack.io/devbox/internal/boxcli/usererr"
18
17
"go.jetpack.io/devbox/internal/devpkg"
19
18
"go.jetpack.io/devbox/internal/lock"
@@ -272,16 +271,11 @@ func ProfileInstall(args *ProfileInstallArgs) error {
272
271
} else {
273
272
platform = " " + platform
274
273
}
275
- otherPlatforms := lo .Filter (nix .SupportedPlatforms (), func (p string , _ int ) bool {
276
- return p != strings .TrimSpace (platform )
277
- })
278
274
return usererr .New (
279
275
"package %s cannot be installed on your platform%s. " +
280
- "Consider using `--platform` or `--exclude-platform` with `devbox add` to install on a supported" +
281
- " platform. Other available platforms are: %s." ,
282
- input .String (),
276
+ "Run `devbox add %[1]s --exclude-platform%[2]s` and re-try." ,
277
+ input .Raw ,
283
278
platform ,
284
- strings .Join (otherPlatforms , ", " ),
285
279
)
286
280
}
287
281
}
You can’t perform that action at this time.
0 commit comments