Skip to content

Contains public models used in composition of the domain objects

Notifications You must be signed in to change notification settings

sologenic/com-fs-utils-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

com-fs-utils-lib

Contains generic models to create a composable proto domain

Common build issues

File not found

A common issue is that a file is not found. This has to do with how protoc resolves imports.

Example:

decimal/decimal.proto: File not found.
/Users/someuser/go/src/github.com/sologenic/com-fs-utils-lib/models/commission/commission.proto:7:1: Import "decimal/decimal.proto" was not found or had errors.
/Users/someuser/go/src/github.com/sologenic/com-fs-utils-lib/models/commission/commission.proto:11:12: "decimal.Decimal" is not defined.

Solution: Include the com-fs-utils-lib/models directory in the proto path.

protoc \
    --proto_path=. "user.proto" \
    --proto_path=$(dirname $(dirname "$rd")) \
    --proto_path=$(dirname "$rd")/com-fs-utils-lib/models \
    "--go_out=." --go_opt=paths=source_relative

About

Contains public models used in composition of the domain objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6