pulumi/pkg/errors/parsetree.go
joeduffy 832ef1f743 Lay some groundwork for symbol binding
This change lays some groundwork that registers symbols when doing semantic
analysis of the resulting AST.  For now, that just entails detecting duplicate
services by way of symbol registration.

Note that we've also split binding into two phases to account for the fact
that intra-stack dependencies are wholly legal.
2016-11-16 13:11:58 -08:00

22 lines
556 B
Go

// Copyright 2016 Marapongo, Inc. All rights reserved.
package errors
import (
"github.com/marapongo/mu/pkg/diag"
)
var MissingMetadataName = &diag.Diag{
ID: 200,
Message: "This %v is missing a `name` property (or it is empty)",
}
var IllegalMetadataSemVer = &diag.Diag{
ID: 201,
Message: "This %v's version '%v' is not a valid semantic version number (note: it may not be a range)",
}
var IllegalDependencySemVer = &diag.Diag{
ID: 202,
Message: "Dependency '%v's version '%v' is not a valid semantic version number or range",
}