Skip to content

Commit

Permalink
Make new tests pass under Go 1.15
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Koch <[email protected]>
  • Loading branch information
hugelgupf committed Dec 29, 2022
1 parent 891be92 commit fd65dc9
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 21 deletions.
10 changes: 6 additions & 4 deletions src/pkg/bb/findpkg/bb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,17 +386,19 @@ func TestResolve(t *testing.T) {
in: []string{
"github.com/u-root/u-root/cmds/core/init",
"github.com/u-root/u-root/cmds/core/ip",
"github.com/u-root/u-root/cmds/core/dhclient",
"github.com/u-root/u-root/cmds/core/yes",
"github.com/hugelgupf/p9/cmd/p9ufs",
"-github.com/u-root/u-root/cmds/core/i*",
"-github.com/u-root/u-root/cmds/core/y*",
},
want: []string{
"github.com/hugelgupf/p9/cmd/p9ufs",
"github.com/u-root/u-root/cmds/core/dhclient",
"github.com/u-root/u-root/cmds/core/init",
"github.com/u-root/u-root/cmds/core/ip",
},
wantPkgPath: []string{
"github.com/hugelgupf/p9/cmd/p9ufs",
"github.com/u-root/u-root/cmds/core/dhclient",
"github.com/u-root/u-root/cmds/core/init",
"github.com/u-root/u-root/cmds/core/ip",
},
},
{
Expand Down
17 changes: 1 addition & 16 deletions test/resolve-modules/go.mod
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
module github.com/u-root/gobusybox/test/resolve-modules

go 1.19
go 1.15

require (
github.com/hugelgupf/p9 v0.2.0
github.com/u-root/u-root v0.10.0
)

require (
github.com/insomniacslk/dhcp v0.0.0-20211209223715-7d93572ebe8e // indirect
github.com/klauspost/compress v1.10.6 // indirect
github.com/klauspost/pgzip v1.2.4 // indirect
github.com/mdlayher/ethernet v0.0.0-20190606142754-0394541c37b7 // indirect
github.com/mdlayher/raw v0.0.0-20191009151244-50f2db8cc065 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/u-root/uio v0.0.0-20220204230159-dac05f7d2cb4 // indirect
github.com/ulikunitz/xz v0.5.8 // indirect
github.com/vishvananda/netlink v1.1.1-0.20211118161826-650dca95af54 // indirect
github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f // indirect
golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect
golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d // indirect
)
Loading

0 comments on commit fd65dc9

Please sign in to comment.