From e7b391b759b050d6719cc6fd8bb87b6dc038bca6 Mon Sep 17 00:00:00 2001 From: Mark Severson Date: Tue, 23 Jun 2020 10:10:07 -0600 Subject: [PATCH] Make the root package importable (#527) * Make the root package importable As part of the fix for ambiguous import errors, the root package needs to be importable. Please see the follow-on commit for details. * bump version number Co-authored-by: Joel Hendrix --- CHANGELOG.md | 4 ++++ autorest/version.go | 2 +- doc.go | 18 ++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 doc.go diff --git a/CHANGELOG.md b/CHANGELOG.md index e40d35472..d1f596bfc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## v14.2.0 + +- Added package comment to make `github.com/Azure/go-autorest` importable. + ## v14.1.1 ### Bug Fixes diff --git a/autorest/version.go b/autorest/version.go index d81116ccc..28973b04d 100644 --- a/autorest/version.go +++ b/autorest/version.go @@ -19,7 +19,7 @@ import ( "runtime" ) -const number = "v14.1.1" +const number = "v14.2.0" var ( userAgent = fmt.Sprintf("Go/%s (%s-%s) go-autorest/%s", diff --git a/doc.go b/doc.go new file mode 100644 index 000000000..99ae6ca98 --- /dev/null +++ b/doc.go @@ -0,0 +1,18 @@ +/* +Package go-autorest provides an HTTP request client for use with Autorest-generated API client packages. +*/ +package go_autorest + +// Copyright 2017 Microsoft Corporation +// +// 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.