* remove golang.org/x/net dependency
The golang.org/x/net/context package is an alias for stdlib context
since go1.7 (see https://go-review.googlesource.com/72570)
This patch replaces all uses of it for stdlib context.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* rename App Engine context type to remove import aliases
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
---------
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
The latest version of gcloud builds in the functionality that aedeploy
provided.
This change makes aedeploy a simple wrapper (i.e., $@ in bash) that also
prints deprecation messages.
If you need the previous functionality of aedeploy, then use the v1.0.0
tag.
Packages that are imported from several different packages don't need to
be scanned more than once. A real-world project would take 10-20 minutes
to scan before this commit, and about 1-2 seconds now.
Fixes#35.
Change-Id: Icfbf84cfb11e1523f4874c1dc51f294c5cb611bf
The new implementation is largely copied from github.com/broady/deplist.
It uses the go/build package to find imports instead of scanning GOPATH
directly. This enables the use of vendored dependencies as well as
using a more robust detection of imports from the standard library.
Some more work needs to be done (more thought needed) on handling
dependencies that are vendored from multiple locations.
For example:
a/
vendor/
c/
aeapp/ // package main
app.yaml
main.go // import "c" and import "b"
b/
b.go // import "c"
vendor/
c/
This structure has a dependency on "a/vendor/c" and a transitive
dependency on "vendor/c" via "b".
Fixes#29Fixes#30
Change-Id: I44034f6559db6cddd1f28361ce438ec23fec35de
The go1.7 runtime isn't out yet, but aedeploy built with a local Go 1.7 will
bundle dependencies suited for a 1.7 builder.
Ignore the go1.7 build tag to keep bundling dependencies like an
aedeploy built with 1.6.
Change-Id: I9463562ba5b6e8cbae2bf6cfcb405c9987bf27a7
Also drop the suggestion to use sed from the README.
Anyone desiring automation should use aefix instead.
Change-Id: I296056ce27400372751783db88e1a2eab102be5a
Also fix up the lastContext identifier tracking. If we hang on to the
specific AST node, refersTo works, and we just have to take care when
inserting it into other positions in the AST.
Change-Id: I8779daa414d230034d0e528e81776f1306533984
This is derived from gofix as at 477b2e70b12d in the Go repo,
with its fixes removed and App Engine-specific fixes added.
Change-Id: Ibc883010d937840c8c3a94fea6d1ef75bc4bd61b