mirror of https://github.com/databricks/cli.git
Run Go formatting with 1.19 (#137)
See https://tip.golang.org/doc/go1.19#go-doc.
This commit is contained in:
parent
12aae35519
commit
d0bd74c116
|
@ -54,7 +54,9 @@ jobs:
|
|||
- name: Setup Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18.8
|
||||
# Use 1.19 because of godoc formatting.
|
||||
# See https://tip.golang.org/doc/go1.19#go-doc.
|
||||
go-version: 1.19
|
||||
|
||||
# No need to download cached dependencies when running gofmt.
|
||||
cache: false
|
||||
|
|
|
@ -31,6 +31,7 @@ func (f File) Modified() (ts time.Time) {
|
|||
//
|
||||
// root: Root of the git repository
|
||||
// ignore: List of patterns defined in `.gitignore`.
|
||||
//
|
||||
// We do not sync files that match this pattern
|
||||
type FileSet struct {
|
||||
root string
|
||||
|
|
|
@ -21,6 +21,7 @@ import (
|
|||
// TODO(Nov 2022): add method in go sdk to get the raw bytes from response of an API
|
||||
//
|
||||
// TODO(Nov 2022): talk to eng-files team about what the response structure would look like.
|
||||
//
|
||||
// This function would have to be modfified probably in the future once this
|
||||
// API goes to public preview
|
||||
func GetRawJsonFileContent(ctx context.Context, wsc *databricks.WorkspaceClient, path string) ([]byte, error) {
|
||||
|
|
Loading…
Reference in New Issue