blob: 86cba76d7f2f88737a67cc20c3f1c6350fb3a371 [file] [log] [blame]
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Vgo is a prototype of what the go command
// might look like with integrated support for package versioning.
//
// Download and install with:
//
// go get -u golang.org/x/vgo
//
// Then run "vgo" instead of "go".
//
// See https://research.swtch.com/vgo-intro for an overview
// and the documents linked at https://research.swtch.com/vgo
// for additional details.
//
// This is still a very early prototype.
// You are likely to run into bugs.
// Please file bugs in the main Go issue tracker,
// https://golang.org/issue,
// and put the prefix `x/vgo:` in the issue title.
//
// Thank you.
//
package main
import (
Main "cmd/go"
"go/build"
"log"
)
func main() {
checkGoVersion()
Main.Main()
}
func checkGoVersion() {
for _, tag := range build.Default.ReleaseTags {
if tag == "go1.10" {
return
}
}
log.SetFlags(0)
log.Fatalf("vgo requires Go 1.10")
}