Skip to content

Commit

Permalink
move main into the go folder
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Oct 3, 2024
1 parent a2bcb11 commit ba73192
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 27 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ check_version:
default: check_version build

build:
$(GO) build -o vt ./
$(GO) build -o vt ./go/vt

test: build
$(GO) test -cover ./...
$(GO) test -cover ./go/...

tidy:
$(GO) mod tidy
Expand Down
40 changes: 40 additions & 0 deletions go/vt/main.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
Copyright 2024 The Vitess Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
╭─[email protected] ~/dev/vitess-tester ‹main*›
╰─➤ go build -o vt2 ./go/ 1 ↵
no Go files in /Users/systay/dev/vitess-tester/go
╭─[email protected] ~/dev/vitess-tester ‹main*›
╰─➤ go build -o vt2 ./go/. 1 ↵
no Go files in /Users/systay/dev/vitess-tester/go
╭─[email protected] ~/dev/vitess-tester ‹main*›
╰─➤ go build -o vt2 ./go/.. 1 ↵
no Go files in /Users/systay/dev/vitess-tester
╭─[email protected] ~/dev/vitess-tester ‹main*›
╰─➤ go build -o vt2 ./go/... 1 ↵
go: cannot write multiple packages to non-directory vt2
*/

package main

import (
"github.com/vitessio/vitess-tester/go/cmd"
)

func main() {
cmd.Execute()
}
25 changes: 0 additions & 25 deletions main.go

This file was deleted.

0 comments on commit ba73192

Please sign in to comment.