From d23e90a7b44b62b0d3b116a6d30849ce66051529 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 14 Mar 2019 14:17:31 +0100 Subject: all: switch to Go 1.12 Differences in code formatting between Go versions cause constant problems for us (https://github.com/golang/go/issues/25161). Currently we support 1.9 and 1.10. Switch to newer 1.11 and 1.12. Fixes #1013 --- pkg/build/akaros.go | 4 ++-- pkg/build/fuchsia.go | 2 +- pkg/vcs/vcs_test.go | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'pkg') diff --git a/pkg/build/akaros.go b/pkg/build/akaros.go index 320616343..59f8347a5 100644 --- a/pkg/build/akaros.go +++ b/pkg/build/akaros.go @@ -86,8 +86,8 @@ bash return fmt.Errorf("failed to write image file: %v", err) } for src, dst := range map[string]string{ - ".config": "kernel.config", - "key": "key", + ".config": "kernel.config", + "key": "key", "obj/kern/akaros-kernel": "kernel", "obj/kern/akaros-kernel-64b": "obj/akaros-kernel-64b", } { diff --git a/pkg/build/fuchsia.go b/pkg/build/fuchsia.go index 491ce496c..f1ff225d7 100644 --- a/pkg/build/fuchsia.go +++ b/pkg/build/fuchsia.go @@ -31,7 +31,7 @@ func (fu fuchsia) build(targetArch, vmType, kernelDir, outputDir, compiler, user } for src, dst := range map[string]string{ "out/" + arch + "/obj/build/images/fvm.blk": "image", - ".ssh/pkey": "key", + ".ssh/pkey": "key", "out/build-zircon/kernel-" + arch + "-gcc/obj/kernel/zircon.elf": "obj/zircon.elf", "out/build-zircon/multiboot.bin": "kernel", "out/" + arch + "/fuchsia.zbi": "initrd", diff --git a/pkg/vcs/vcs_test.go b/pkg/vcs/vcs_test.go index 457430989..aa7210bf6 100644 --- a/pkg/vcs/vcs_test.go +++ b/pkg/vcs/vcs_test.go @@ -33,12 +33,12 @@ func TestCheckRepoAddress(t *testing.T) { "http://host.xz:123/path/to/repo.git/": true, "https://chromium.googlesource.com/chromiumos/third_party/kernel": true, "https://fuchsia.googlesource.com": true, - "": false, - "foobar": false, - "linux-next": false, - "foo://kernel.ubuntu.com/ubuntu/ubuntu-zesty.git": false, - "git://kernel/ubuntu.git": false, - "gitgit://kernel.ubuntu.com/ubuntu/ubuntu-zesty.git": false, + "": false, + "foobar": false, + "linux-next": false, + "foo://kernel.ubuntu.com/ubuntu/ubuntu-zesty.git": false, + "git://kernel/ubuntu.git": false, + "gitgit://kernel.ubuntu.com/ubuntu/ubuntu-zesty.git": false, }) } -- cgit mrf-deployment