8000 release 1.0 · revel/revel Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

release 1.0

notzippy@gmail.com edited this page May 4, 2020 · 1 revision

Release 1.0

A line in the sand

New items

  • go.mod is functionally supported (deps tools support has been removed)
  • Bug fixes and small improvements

Migration to go mod

It is exciting to have versioned modules again. Here are the steps to to take you there. Below is the old layout of a typical project

Old Layout
  • my_gocode/ - GOPATH root
    • src/ - GOPATH src/ directory
      • github.com/revel/revel/ - Revel source code
      • bitbucket.org/me/sample/ - Sample app root
New Layout
  • my_gocode/ - GOPATH root

Basically everything under the traditional src folder (and subfolders) can be moved up into a single file If you were working on the above project you would do (after getting the latest version of Revel cmd)

go get github.com/revel/cmd/revel

$ cd my_gocode
$ go mod init bitbucket.org/me/sample/
$ mv src/bitbucket.org/me/sample/* .
$ rm src
$ go mod tidy

The last step should examine your source code and add any required modules to the code base. If you have local references you can override them as needed, for example the following will modify the go.mod to use the develop version of Revel to build the application

 revel build   --gomod-flags "edit -replace=github.com/revel/revel=github.com/revel/revel@develop" -a my_gocode -t build/my_gocode

Breaking Changes

None, old code should still compile without issues, there is a backwards compatibility path. I there is no go.mod file in the project folder it will use it automatically.

Deprecated methods

Features

  • go.mod support.

Enhancements

  • go.mod support

Bug fixes

Clone this wiki locally
0