pulumi/cmd
joeduffy 2c0266c9e4 Clean up package URL logic
This change rearranges the old way we dealt with URLs.  In the old system,
virtually every reference to an element, including types, was fully qualified
with a possible URL-like reference.  (The old pkg/tokens/Ref type.)  In the
new model, only dependency references are URL-like.  All maps and references
within the MuPack/MuIL format are token and name based, using the new
pkg/tokens/Token and pkg/tokens/Name family of related types.

As such, this change renames Ref to PackageURLString, and RefParts to
PackageURL.  (The convenient name is given to the thing with "more" structure,
since we prefer to deal with structured types and not strings.)  It moves
out of the pkg/tokens package and into pkg/pack, since it is exclusively
there to support package resolution.  Similarly, the Version, VersionSpec,
and related types move out of pkg/tokens and into pkg/pack.

This change cleans up the various binder, package, and workspace logic.
Most of these changes are a natural fallout of this overall restructuring,
although in a few places we remained sloppy about the difference between
Token, Name, and URL.  Now the type system supports these distinctions and
forces us to be more methodical about any conversions that take place.
2017-01-20 11:46:36 -08:00
..
apply.go Add scaffolding for mu apply, compile, and plan 2017-01-17 14:40:55 -08:00
compile.go Actually perform compilations from mu compile 2017-01-18 15:52:26 -08:00
describe.go Clean up package URL logic 2017-01-20 11:46:36 -08:00
get.go Begin merging MuPackage/MuIL into the compiler 2017-01-17 17:04:15 -08:00
mu.go Rearrange the library code 2017-01-20 10:30:43 -08:00
plan.go Add scaffolding for mu apply, compile, and plan 2017-01-17 14:40:55 -08:00
version.go Annotate a bunch of TODOs with work item numbers 2016-11-23 12:30:02 -08:00