1. 23 9月, 2021 2 次提交
  2. 26 8月, 2021 1 次提交
    • H
      dap: define LaunchConfig/AttachConfig types (#2571) · 1433c079
      Hyang-Ah Hana Kim 提交于
      Formally define these types and document their meaning.
      We will auto-generate the dlv-dap documentation from these Go type doc.
      
      mapToStruct is a helper that sets the given struct's fields with the
      info in map[string]interface{} (launch/attach's Arguments). We achieve
      this by reencoding map[string]interface{} to json and decoding back to
      the target struct. If go-dap left the implementation-specific arguments
      as json.RawMessage and let the implementation decode as needed, this
      reencoding could've been avoided.
      
      encoding/json itself does not have mean to enforce required fields.
      There was a test case that checks substitutePath elements must set
      both from/to fields. Path.UnmarshalJSON implements the check.
      I am not yet sure about the need for distinction between missing
      'from/to' and empty strings yet. (empty value is useful when dealing with
      a binary built with trimpath, right?)
      
      A minor behavior change - previously, if noDebug is not a boolean type,
      we ignored the attribute silently. Since we use json decoding, any
      mismatched types will cause an error and this non-boolean type noDebug
      attribute will result in launch failure.
      1433c079
  3. 06 8月, 2021 2 次提交
  4. 31 7月, 2021 1 次提交
  5. 23 7月, 2021 1 次提交
    • H
      all: update github.com/spf13/cobra to v1.1.3 (#2572) · f74b7a6e
      Hyang-Ah Hana Kim 提交于
      This removes indirect dependencies from go.mod, and
      includes the fix for the missing -help flag info.
      
      The latest cobra release is v1.2.1. Given that there were
      minor security-related dependency cleanup during v1.2 release,
      I was tempted to pick up the latest version, but that caused
      dependency updates in golang.org/x/sys and golang.org/x/tools
      which may be too recent (golang.org/x/* follow the go's release
      support policy, so recent versions may not be compatible with
      go versions beyond go's official version support policy).
      
      Verified that dlv still builds with go1.12.x.
      (go1.12 is the oldest version of go that can build the latest delve already).
      
      $ go get -d github.com/spf13/cobra@v1.1.3
      $ go mod tidy
      $ go mod vendor
      $ go run _scripts/gen-usage-docs.go
      f74b7a6e
  6. 05 5月, 2021 1 次提交
  7. 05 12月, 2020 1 次提交
  8. 16 9月, 2020 1 次提交
  9. 25 8月, 2020 1 次提交
  10. 25 6月, 2020 1 次提交
  11. 15 5月, 2020 1 次提交
  12. 12 5月, 2020 1 次提交
  13. 05 5月, 2020 1 次提交
  14. 11 4月, 2020 1 次提交
  15. 27 3月, 2020 1 次提交