Skip to content

Error running aah cli 'build' on certain projects after upgrading go1.11 to 1.12 #253

Description

@joelsdc

What version of aah are you using (aah --version)?

$ aah --version
aah v0.12.3
cli v0.13.4
go  v1.12.1

Does this issue reproduce with the latest release?

Yes

What operating system are you using (such as macOS, Linux and Windows)?

macOS Mojave

What did you do?

Build a static binary of my project

What did you expect to see?

The single binary built ;)

What did you see instead?

A build error

Additional context

When building a single image binary (also happens with regular build) I get the following error:

FATAL
# git.xxx.com/zzz/app/generated
app/generated/add_controllers.go:45:42: undefined: models

exit status 2

Extra info

Some extra info to hopefully help you troubleshoot:

  1. This started happening after upgrading from go1.11.X to go1.12.1
  2. I was able to have a scenario were certain projects would build, and others would give the above error.

Workaround:

Reinstall aah cli:

curl https://aahframework.org/install-cli | bash

and then rebuild the project:

$ aah b -s
...
Build successful for 'zzz' [git.xxx.com/zzz]
Application artifact is here: /Users/joel/git/zzz/build/zzz-ff3c0e5-dirty-darwin-amd64.zip

Thanks!
Joel.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions