Граф коммитов

25 Коммитов

Автор SHA1 Сообщение Дата
cui fliter 9af54ae8c5
all: fix some comments (#296)
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-03-16 00:48:57 +01:00
Sebastiaan van Stijn a1ae214131
remove golang.org/x/net dependency (#295)
* 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>
2023-03-01 10:29:44 -08:00
Zev Goldstein 0c7f7a83ce
run gofmt with go1.19 release candidate (#282) 2022-07-12 12:28:29 -04:00
Chris Broadfoot b5c7c24799 cmd/aedeploy: deprecate aedeploy (#65)
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.
2017-03-21 09:47:31 -07:00
dlorenc 2e4a801b39 aebundler: switch comment from google_appengine to google-appengine (#47)
These are equivalent, but GCR would like to encourage users to switch to
the hyphen form.
2017-02-06 12:30:24 -08:00
Chris Broadfoot ca59ef35f4 cmd/aedeploy: don't scan packages more than once
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
2016-11-15 14:14:14 -08:00
Chris Broadfoot a051cd6e3a cmd/aedeploy: add verbose logging
Updates #35

Change-Id: I34991b5dca3d11f016f8272729591450695e25ff
2016-11-15 13:57:00 -08:00
Chris Broadfoot b2b053be96 cmd/aedeploy: remove "preview" from suggested gcloud command
Change-Id: If00535ecce770549272b5266174321a1b9dd6d40
2016-11-07 21:51:05 +00:00
Chris Broadfoot 46239ca616 cmd/aedeploy: rewrite import scanning logic
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 #29
Fixes #30

Change-Id: I44034f6559db6cddd1f28361ce438ec23fec35de
2016-10-25 18:50:29 +00:00
Chris Broadfoot 4f7eeb5305 cmd/aedeploy: ignore go1.7 build tag
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
2016-08-23 00:15:27 +00:00
David Symonds e234e71924 aefix: Drop "appengine" (or updated equivalent) import if it becomes unused.
Change-Id: I879d81a24768afea7598964132204ac9ed2fea78
2016-04-18 13:53:02 +10:00
David Symonds 0f8c70efe6 aefix: Update code using taskqueue.QueueStats.
Also drop the suggestion to use sed from the README.
Anyone desiring automation should use aefix instead.

Change-Id: I296056ce27400372751783db88e1a2eab102be5a
2016-04-18 13:23:34 +10:00
David Symonds 84098354bd aefix: Update funcs that take an appengine.Context argument.
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
2016-04-18 12:37:54 +10:00
David Symonds c8bc8a996f cmd/aefix: Initial implementation.
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
2016-04-15 14:44:26 +10:00
David Symonds a503df954a Update more docs to follow new Managed VM branding.
Change-Id: I1efa86d65a60795877e22f78db27a5f5e4347055
2016-03-23 14:15:09 +11:00
Dave Day 6a9e12ad5c aedeploy: fix minor error in fmt.Errorf call
Add missing param to fmt.Errorf call. Also switch %v->%q for file and
dir names.

Change-Id: I2fdfffd3cf187f8d95b16781f508dbd34eb7dd42
2015-11-18 02:03:33 +00:00
Glenn Lewis cb0aba0eb7 appengine/cmd/aedeploy: follow symlinks to folders when copying tree
Fixes #7.

Change-Id: I5b61b18dcda0d32bef9e7ef9366371b4ac39ea29
2015-10-29 16:24:41 -07:00
Chris Broadfoot 72f4367c4f cmd/aedeploy: Allow aedeploy to be run with an absolute path.
Use a constant string ("aedeploy") to create the temporary directory.

Change-Id: If3e48b3cf9b11663107a271298b6741bff27b584
2015-09-02 18:31:38 -07:00
Chris Broadfoot ce291781f9 Remove spurious newline from package documentation.
Change-Id: Icdc72816e30c2bc321657e834d6a2a7b9811e269
2015-08-31 17:16:42 -07:00
Chris Broadfoot 5d51656393 Add missing copyright headers.
Change-Id: I4f3f10c41c94a975cc9d451fad9e3ae01117cd59
2015-08-25 23:55:53 +00:00
Chris Broadfoot acdcfecae6 cmd/aedeploy: Remove reference to Dockerfile. Dockerfile is not required
for App Engine 2.

Change-Id: If108eb730a0eae1fe8c02ffd57b4b0d2ab35ebee
2015-08-25 14:40:40 -07:00
Glenn Lewis 8a84f416c2 appengine: print usage for aedeploy if no args passed
Change-Id: I07fd50f677521310ea299a41987f21b30925e0db
2015-05-25 22:44:28 -07:00
Glenn Lewis 361dc5ec39 appengine: add aedeploy
Change-Id: I9a3c8bcec5a4d64982a34746e23591171d3561e3
2015-05-21 17:40:00 -07:00
Glenn Lewis a8764da935 appengine: Expose appengine.Main to call internal.Main
Change-Id: Ief07aa0373684a992d67c9b216c7546eff5f1e71
2015-05-12 21:38:50 -07:00
Glenn Lewis 0c3026a624 appengine: add bundler tool
Change-Id: Id26822be12179f18f2b5902e8f7a3b8975f7b67e
2015-04-16 20:02:31 -07:00