Skip to content

Latest commit

 

History

History
84 lines (63 loc) · 2.25 KB

aah-project-file.md

File metadata and controls

84 lines (63 loc) · 2.25 KB

Title: aah.project Configuration File Desc: aah.project file holds configuration values for aah application project. It is used in build, project info, etc. Keywords: aah.project, project file, build config, build file, flags, ldflags, tags, build excludes

aah project file - aah.project

aah.project file holds the application info and build configuration values.

Table of Contents

Section: build { ... }

Build section is used during aah application compile and build process.

binary_name

Application binary name.

Default value is name attribute value from aah.conf.

binary_name = ""

version

Used as fallback if git commit sha or AAH_APP_VERSION environment value is not available.

version = "0.0.1"

dep_get

If application is missing any dependencies in build import path during a compile and build process, aah CLI executes go get <package>. If it's false then build shows error with list of dependencies which are not available.

Default value is false.

dep_get = true

log_level

Log level is used for aah CLI tool logging.

Default value is info.

log_level = "info"

flags

Flag values is supplied to go build command.

Default value is ["-i"]

flags = ["-i"]

ldflags

Ldflags is supplied to go build command as -ldflags ....

Default value is empty string.

ldflags = ""

tags

Tags is supplied to go build command as -tags ....

Default value is empty string.

tags = ""

ast_excludes

AST excludes is used for aah.Context inspection and generating aah application main Go file. For valid exclude patterns refer here.

Default value is ["*_test.go", ".*", "*.bak", "*.tmp", "vendor"]

ast_excludes = ["*_test.go", ".*", "*.bak", "*.tmp", "vendor"]

excludes

Packing excludes is used to exclude file/directory during aah application build archive. For valid exclude patterns refer here.

Default value is ["*.go", "*_test.go", ".*", "*.bak", "*.tmp", "vendor", "app", "tests", "logs"]

excludes = ["*.go", "*_test.go", ".*", "*.bak", "*.tmp", "vendor", "app", "tests", "logs"]