From 74cea2fedfe8b64ddca5ecb672a2f3f51a7a0d55 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Mon, 4 Nov 2024 12:44:42 +0000 Subject: [PATCH] Go: Add `vendor` directory to `mixed-layout` test with `go.work` file The `go.work` file here should not get discovered by the autobuilder --- .../mixed-layout/src/module/vendor/example.com/test/add.go | 5 +++++ .../mixed-layout/src/module/vendor/example.com/test/go.work | 3 +++ .../mixed-layout/src/module/vendor/modules.txt | 3 +++ .../integration-tests/mixed-layout/src/workspace/go.work.sum | 3 +++ 4 files changed, 14 insertions(+) create mode 100644 go/ql/integration-tests/mixed-layout/src/module/vendor/example.com/test/add.go create mode 100644 go/ql/integration-tests/mixed-layout/src/module/vendor/example.com/test/go.work create mode 100644 go/ql/integration-tests/mixed-layout/src/module/vendor/modules.txt create mode 100644 go/ql/integration-tests/mixed-layout/src/workspace/go.work.sum diff --git a/go/ql/integration-tests/mixed-layout/src/module/vendor/example.com/test/add.go b/go/ql/integration-tests/mixed-layout/src/module/vendor/example.com/test/add.go new file mode 100644 index 00000000000..b1ce6a2a3a3 --- /dev/null +++ b/go/ql/integration-tests/mixed-layout/src/module/vendor/example.com/test/add.go @@ -0,0 +1,5 @@ +package test + +func Add(a, b int) int { + return a + b +} diff --git a/go/ql/integration-tests/mixed-layout/src/module/vendor/example.com/test/go.work b/go/ql/integration-tests/mixed-layout/src/module/vendor/example.com/test/go.work new file mode 100644 index 00000000000..96b89a39cb9 --- /dev/null +++ b/go/ql/integration-tests/mixed-layout/src/module/vendor/example.com/test/go.work @@ -0,0 +1,3 @@ +go 1.22.0 + +use . diff --git a/go/ql/integration-tests/mixed-layout/src/module/vendor/modules.txt b/go/ql/integration-tests/mixed-layout/src/module/vendor/modules.txt new file mode 100644 index 00000000000..023bcb386e2 --- /dev/null +++ b/go/ql/integration-tests/mixed-layout/src/module/vendor/modules.txt @@ -0,0 +1,3 @@ +# example.com/test v0.1.0 +## explicit; go 1.14 +example.com/test diff --git a/go/ql/integration-tests/mixed-layout/src/workspace/go.work.sum b/go/ql/integration-tests/mixed-layout/src/workspace/go.work.sum new file mode 100644 index 00000000000..d89ea795aab --- /dev/null +++ b/go/ql/integration-tests/mixed-layout/src/workspace/go.work.sum @@ -0,0 +1,3 @@ +golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=