Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gogf/gf
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.3.1
Choose a base ref
...
head repository: gogf/gf
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.3.2
Choose a head ref
  • 19 commits
  • 60 files changed
  • 6 contributors

Commits on Jan 18, 2023

  1. add label planned for ci to check issue inactive (#2408)

    add label planned for ci to check issue inactive
    gqcn authored Jan 18, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    fabpot Fabien Potencier
    Copy the full SHA
    39fede6 View commit details

Commits on Feb 6, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    fabpot Fabien Potencier
    Copy the full SHA
    9ba49fa View commit details

Commits on Feb 7, 2023

  1. fix issue #2011 (#2421)

    gqcn authored Feb 7, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    fabpot Fabien Potencier
    Copy the full SHA
    38c9cac View commit details
  2. fix issue #2015 (#2422)

    gqcn authored Feb 7, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    fabpot Fabien Potencier
    Copy the full SHA
    5f0641f View commit details
  3. fix issue #2050: add -t option support for command gf docker to c…

    …ompatable with older version (#2423)
    gqcn authored Feb 7, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    fabpot Fabien Potencier
    Copy the full SHA
    2b90bcf View commit details
  4. .gitignore updates (#2426)

    gqcn authored Feb 7, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    fabpot Fabien Potencier
    Copy the full SHA
    21ebf48 View commit details

Commits on Feb 8, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    fabpot Fabien Potencier
    Copy the full SHA
    3adae3a View commit details
  2. fix issue 2356 (#2428)

    gqcn authored Feb 8, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    fabpot Fabien Potencier
    Copy the full SHA
    4a66301 View commit details
  3. fix issue #2371 (#2429)

    gqcn authored Feb 8, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    fabpot Fabien Potencier
    Copy the full SHA
    81d8aa5 View commit details
  4. fix issue #2355 (#2430)

    gqcn authored Feb 8, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    fabpot Fabien Potencier
    Copy the full SHA
    a746794 View commit details
  5. fix issue #2331 (#2432)

    gqcn authored Feb 8, 2023
    Copy the full SHA
    d66af12 View commit details
  6. fix issue #2339 (#2433)

    gqcn authored Feb 8, 2023
    Copy the full SHA
    117fc6e View commit details
  7. Copy the full SHA
    8ecfa91 View commit details
  8. Copy the full SHA
    013f8b2 View commit details
  9. Copy the full SHA
    005668a View commit details

Commits on Feb 13, 2023

  1. fix #2435 (#2437)

    glennliao authored Feb 13, 2023
    Copy the full SHA
    0361f9f View commit details

Commits on Feb 14, 2023

  1. fix issue #2338 (#2444)

    gqcn authored Feb 14, 2023
    Copy the full SHA
    b69e0ff View commit details

Commits on Feb 15, 2023

  1. fix issue #2427 (#2442)

    gqcn authored Feb 15, 2023
    Copy the full SHA
    ac6b0c0 View commit details
  2. fix issue #2447 (#2448)

    gqcn authored Feb 15, 2023
    Copy the full SHA
    ad737de View commit details
Showing with 767 additions and 391 deletions.
  1. +1 −0 .github/workflows/gf.yml
  2. +1 −1 .github/workflows/issue-check-inactive.yml
  3. +0 −3 .gitignore
  4. +5 −1 cmd/gf/internal/cmd/cmd_docker.go
  5. +2 −1 cmd/gf/internal/cmd/cmd_run.go
  6. +1 −1 cmd/gf/internal/packed/template-mono.go
  7. +1 −1 cmd/gf/internal/packed/template-single.go
  8. +6 −6 container/garray/garray_normal_any.go
  9. +5 −5 container/garray/garray_normal_int.go
  10. +6 −6 container/garray/garray_normal_str.go
  11. +3 −1 container/gqueue/gqueue.go
  12. +4 −4 contrib/drivers/clickhouse/clickhouse.go
  13. +11 −4 contrib/drivers/dm/dm.go
  14. +0 −122 contrib/drivers/dm/dm_z_basic_test.go
  15. +1 −1 contrib/drivers/dm/go.mod
  16. +2 −2 contrib/drivers/dm/go.sum
  17. +9 −5 contrib/drivers/mssql/mssql.go
  18. +14 −6 contrib/drivers/mysql/mysql.go
  19. +1 −1 contrib/drivers/mysql/mysql_feature_time_maintain_test.go
  20. +193 −5 contrib/drivers/mysql/mysql_issue_test.go
  21. +7 −3 contrib/drivers/oracle/oracle.go
  22. +4 −3 contrib/drivers/pgsql/pgsql.go
  23. +9 −5 contrib/drivers/sqlite/sqlite.go
  24. +21 −0 contrib/drivers/sqlite/sqlite_core_test.go
  25. +2 −2 contrib/nosql/redis/redis_z_unit_gcache_adapter_test.go
  26. +10 −2 database/gdb/gdb_core.go
  27. +1 −1 database/gdb/gdb_core_config.go
  28. +31 −19 database/gdb/gdb_core_underlying.go
  29. +5 −5 database/gdb/gdb_func.go
  30. +22 −12 database/gdb/gdb_model_delete.go
  31. +2 −2 database/gdb/gdb_model_insert.go
  32. +14 −2 database/gdb/gdb_model_select.go
  33. +26 −19 database/gdb/gdb_model_time.go
  34. +19 −5 database/gdb/gdb_model_update.go
  35. +3 −3 database/gdb/gdb_model_with.go
  36. +1 −1 database/gdb/gdb_z_example_test.go
  37. +1 −1 encoding/gjson/gjson_z_example_conversion_test.go
  38. +9 −4 encoding/gyaml/gyaml.go
  39. +1 −3 encoding/gyaml/gyaml_z_unit_test.go
  40. +1 −1 internal/empty/empty.go
  41. +2 −2 net/ghttp/ghttp_response.go
  42. +1 −1 net/ghttp/ghttp_response_write.go
  43. +8 −21 net/ghttp/ghttp_response_writer.go
  44. +8 −0 net/ghttp/internal/response/response.go
  45. +59 −0 net/ghttp/internal/response/response_writer.go
  46. +18 −7 net/goai/goai_shema_ref.go
  47. +4 −4 os/gcache/gcache_adapter_redis.go
  48. +1 −1 os/gcron/gcron_z_example_1_test.go
  49. +1 −1 os/glog/glog_z_example_test.go
  50. +6 −6 os/gstructs/gstructs_field.go
  51. +6 −5 os/gtimer/gtimer_timer.go
  52. +1 −1 os/gtimer/gtimer_z_example_test.go
  53. +16 −2 util/gconv/gconv_struct.go
  54. +17 −0 util/gconv/gconv_z_unit_issue_test.go
  55. +35 −11 util/gutil/gutil_slice.go
  56. +39 −0 util/gutil/gutil_z_example_test.go
  57. +7 −0 util/gvalid/gvalid_validator_check_struct.go
  58. +59 −59 util/gvalid/gvalid_z_example_feature_rule_test.go
  59. +23 −0 util/gvalid/gvalid_z_unit_feature_recursive_test.go
  60. +1 −1 version.go
1 change: 1 addition & 0 deletions .github/workflows/gf.yml
Original file line number Diff line number Diff line change
@@ -122,6 +122,7 @@ jobs:
- 1521:1521

# dm8 server
# docker run -d --name dm -p 5236:5236 loads/dm:v8.1.2.128_ent_x86_64_ctm_pack4
dm-server:
image: loads/dm:v8.1.2.128_ent_x86_64_ctm_pack4
ports:
2 changes: 1 addition & 1 deletion .github/workflows/issue-check-inactive.yml
Original file line number Diff line number Diff line change
@@ -25,4 +25,4 @@ jobs:
inactive-label: 'inactive'
inactive-day: 7
issue-state: open
exclude-labels: 'bug,$exclude-empty'
exclude-labels: 'bug,planned,$exclude-empty'
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -7,11 +7,8 @@
.settings/
.vscode/
vendor/
composer.lock
gitpush.sh
pkg/
bin/
cbuild
**/.DS_Store
.test/
cmd/gf/main
6 changes: 5 additions & 1 deletion cmd/gf/internal/cmd/cmd_docker.go
Original file line number Diff line number Diff line change
@@ -33,6 +33,7 @@ gf docker main.go
gf docker main.go -t hub.docker.com/john/image:tag
gf docker main.go -t hub.docker.com/john/image:tag
gf docker main.go -p -t hub.docker.com/john/image:tag
gf docker main.go -p -tp ["hub.docker.com/john","hub.docker.com/smith"] -tn image:tag
`
cDockerDc = `
The "docker" command builds the GF project to a docker images.
@@ -45,6 +46,7 @@ You should have docker installed, and there must be a Dockerfile in the root of
cDockerFileBrief = `file path of the Dockerfile. it's "manifest/docker/Dockerfile" in default`
cDockerShellBrief = `path of the shell file which is executed before docker build`
cDockerPushBrief = `auto push the docker image to docker registry if "-t" option passed`
cDockerTagBrief = `full tag for this docker, pattern like "xxx.xxx.xxx/image:tag"`
cDockerTagNameBrief = `tag name for this docker, pattern like "image:tag". this option is required with TagPrefixes`
cDockerTagPrefixesBrief = `tag prefixes for this docker, which are used for docker push. this option is required with TagName`
cDockerExtraBrief = `extra build options passed to "docker image"`
@@ -61,6 +63,7 @@ func init() {
`cDockerShellBrief`: cDockerShellBrief,
`cDockerBuildBrief`: cDockerBuildBrief,
`cDockerPushBrief`: cDockerPushBrief,
`cDockerTagBrief`: cDockerTagBrief,
`cDockerTagNameBrief`: cDockerTagNameBrief,
`cDockerTagPrefixesBrief`: cDockerTagPrefixesBrief,
`cDockerExtraBrief`: cDockerExtraBrief,
@@ -73,6 +76,7 @@ type cDockerInput struct {
File string `name:"file" short:"f" brief:"{cDockerFileBrief}" d:"manifest/docker/Dockerfile"`
Shell string `name:"shell" short:"s" brief:"{cDockerShellBrief}" d:"manifest/docker/docker.sh"`
Build string `name:"build" short:"b" brief:"{cDockerBuildBrief}" d:"-a amd64 -s linux"`
Tag string `name:"tag" short:"t" brief:"{cDockerTagBrief}"`
TagName string `name:"tagName" short:"tn" brief:"{cDockerTagNameBrief}" v:"required-with:TagPrefixes"`
TagPrefixes []string `name:"tagPrefixes" short:"tp" brief:"{cDockerTagPrefixesBrief}" v:"required-with:TagName"`
Push bool `name:"push" short:"p" brief:"{cDockerPushBrief}" orphan:"true"`
@@ -114,7 +118,7 @@ func (c cDocker) Index(ctx context.Context, in cDockerInput) (out *cDockerOutput
}
}
if len(dockerTags) == 0 {
dockerTags = []string{""}
dockerTags = []string{in.Tag}
}
for i, dockerTag := range dockerTags {
if i > 0 {
3 changes: 2 additions & 1 deletion cmd/gf/internal/cmd/cmd_run.go
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"runtime"
"strings"

"github.com/gogf/gf/v2/container/gtype"
"github.com/gogf/gf/v2/frame/g"
@@ -154,7 +155,7 @@ func (app *cRunApp) Run(ctx context.Context) {
if runtime.GOOS == "windows" {
// Special handling for windows platform.
// DO NOT USE "cmd /c" command.
process = gproc.NewProcess(runCommand, nil)
process = gproc.NewProcess(outputPath, strings.Fields(app.Args))
} else {
process = gproc.NewProcessCmd(runCommand, nil)
}
Loading