From 62c20031a194aa1a0ed387540a6ef51fb5313232 Mon Sep 17 00:00:00 2001 From: Ming Deng Date: Wed, 25 Nov 2020 20:56:37 +0800 Subject: [PATCH] update beego version --- cmd/commands/api/apiapp.go | 2 +- cmd/commands/hprose/hprose.go | 2 +- cmd/commands/new/new.go | 2 +- go.mod | 2 +- go.sum | 2 ++ utils/version.go | 17 +++++++++++++++++ 6 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 utils/version.go diff --git a/cmd/commands/api/apiapp.go b/cmd/commands/api/apiapp.go index ca2601a..13a1e41 100644 --- a/cmd/commands/api/apiapp.go +++ b/cmd/commands/api/apiapp.go @@ -586,7 +586,7 @@ func createAPI(cmd *commands.Command, args []string) int { appPath = path.Join(utils.GetBeeWorkPath(), args[0]) packPath = args[0] if beegoVersion.String() == `` { - beegoVersion.Set(`v1.12.1`) + beegoVersion.Set(utils.BEEGO_VERSION) } } diff --git a/cmd/commands/hprose/hprose.go b/cmd/commands/hprose/hprose.go index 7285260..8c7eb76 100644 --- a/cmd/commands/hprose/hprose.go +++ b/cmd/commands/hprose/hprose.go @@ -93,7 +93,7 @@ func createhprose(cmd *commands.Command, args []string) int { apppath = path.Join(utils.GetBeeWorkPath(), args[0]) packpath = args[0] if beegoVersion.String() == `` { - beegoVersion.Set(`v1.12.1`) + beegoVersion.Set(utils.BEEGO_VERSION) } } diff --git a/cmd/commands/new/new.go b/cmd/commands/new/new.go index 7fb1bb8..8461067 100644 --- a/cmd/commands/new/new.go +++ b/cmd/commands/new/new.go @@ -287,7 +287,7 @@ func CreateApp(cmd *commands.Command, args []string) int { appPath = path.Join(utils.GetBeeWorkPath(), args[0]) packPath = args[0] if beegoVersion.String() == `` { - beegoVersion.Set(`v1.12.1`) + beegoVersion.Set(utils.BEEGO_VERSION) } } diff --git a/go.mod b/go.mod index 760e398..42703e6 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/beego/bee go 1.13 require ( - github.com/astaxie/beego v1.12.2-0.20201105155152-20a0de6bd075 + github.com/astaxie/beego v1.12.4-0.20201114080429-05d8e293f7f3 github.com/davecgh/go-spew v1.1.1 github.com/flosch/pongo2 v0.0.0-20200529170236-5abacdfa4915 github.com/fsnotify/fsnotify v1.4.9 diff --git a/go.sum b/go.sum index 842c244..ac29439 100644 --- a/go.sum +++ b/go.sum @@ -27,6 +27,8 @@ github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmV github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/astaxie/beego v1.12.2-0.20201105155152-20a0de6bd075 h1:TR1ruJJ5gOHkZh4oc2S9EHEC1Uqrso/BSewu8dQFifM= github.com/astaxie/beego v1.12.2-0.20201105155152-20a0de6bd075/go.mod h1:Z2in5/6WygF7+WRPaCIOIdckL2TRTiOkOL3mT8+w8Tg= +github.com/astaxie/beego v1.12.4-0.20201114080429-05d8e293f7f3 h1:etrsSJGR/nmMRNjD2JyOYZEzDpVrkwZioyQs7y54u+o= +github.com/astaxie/beego v1.12.4-0.20201114080429-05d8e293f7f3/go.mod h1:Z2in5/6WygF7+WRPaCIOIdckL2TRTiOkOL3mT8+w8Tg= github.com/beego/goyaml2 v0.0.0-20130207012346-5545475820dd/go.mod h1:1b+Y/CofkYwXMUU0OhQqGvsY2Bvgr4j6jfT699wyZKQ= github.com/beego/x2j v0.0.0-20131220205130-a0352aadc542/go.mod h1:kSeGC/p1AbBiEp5kat81+DSQrZenVBZXklMLaELspWU= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= diff --git a/utils/version.go b/utils/version.go new file mode 100644 index 0000000..0411dbf --- /dev/null +++ b/utils/version.go @@ -0,0 +1,17 @@ +// Copyright 2020 +// +// 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. + +package utils + +const BEEGO_VERSION = "v1.12.4-0.20201114080429-05d8e293f7f3"