Skip to content

Commit 2d701be

Browse files
author
Gregor Gololicic
committed
Merge branch 'master' into improvement/headers
# Conflicts: # internal/cadence/vscode/gen.go # internal/cadence/vscode/vscode.go
2 parents cd233aa + b44fc41 commit 2d701be

File tree

23 files changed

+345
-673
lines changed

23 files changed

+345
-673
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
continue-on-error: true
1414
uses: snyk/actions/golang@master
1515
with:
16-
go-version: '1.16.2'
16+
go-version: '1.17'
1717
env:
1818
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
1919
build:
@@ -24,7 +24,7 @@ jobs:
2424
fetch-depth: 0
2525
- uses: actions/setup-go@v1
2626
with:
27-
go-version: '1.16.2'
27+
go-version: '1.17'
2828
- name: Build Binaries
2929
run: make versioned-binaries
3030
- name: Uploading Binaries

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fetch-depth: 0
1818
- uses: actions/setup-go@v1
1919
with:
20-
go-version: '1.16.2'
20+
go-version: '1.17'
2121
- uses: actions/cache@v1
2222
with:
2323
path: ~/go/pkg/mod

go.mod

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
module github.com/onflow/flow-cli
22

3-
go 1.13
3+
go 1.16
44

55
require (
6-
github.com/a8m/envsubst v1.2.0
7-
github.com/getsentry/sentry-go v0.12.0
6+
github.com/a8m/envsubst v1.3.0
7+
github.com/getsentry/sentry-go v0.13.0
88
github.com/go-git/go-git/v5 v5.4.2
99
github.com/gosuri/uilive v0.0.4
1010
github.com/joho/godotenv v1.4.0
1111
github.com/manifoldco/promptui v0.9.0
12-
github.com/onflow/cadence v0.23.0
12+
github.com/onflow/cadence v0.23.3
1313
github.com/onflow/cadence/languageserver v0.18.3-0.20220202133308-207188a51831
14-
github.com/onflow/fcl-dev-wallet v0.4.1
15-
github.com/onflow/flow-core-contracts/lib/go/templates v0.10.1
16-
github.com/onflow/flow-emulator v0.30.0
17-
github.com/onflow/flow-go v0.23.2-0.20220304145234-bf10d55c40fa
14+
github.com/onflow/fcl-dev-wallet v0.4.2
15+
github.com/onflow/flow-core-contracts/lib/go/templates v0.11.0
16+
github.com/onflow/flow-emulator v0.31.1
17+
github.com/onflow/flow-go v0.25.6
1818
github.com/onflow/flow-go-sdk v0.24.0
1919
github.com/psiemens/sconfig v0.1.0
20-
github.com/spf13/afero v1.8.0
21-
github.com/spf13/cobra v1.3.0
22-
github.com/stretchr/testify v1.7.1-0.20210824115523-ab6dc3262822
23-
github.com/thoas/go-funk v0.7.0
24-
gonum.org/v1/gonum v0.9.3
25-
google.golang.org/grpc v1.44.0
20+
github.com/sirupsen/logrus v1.6.0 // indirect
21+
github.com/spf13/afero v1.8.2
22+
github.com/spf13/cobra v1.4.0
23+
github.com/stretchr/testify v1.7.1
24+
github.com/thoas/go-funk v0.9.2
25+
gonum.org/v1/gonum v0.11.0
26+
google.golang.org/grpc v1.45.0
2627
)

go.sum

Lines changed: 76 additions & 154 deletions
Large diffs are not rendered by default.

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ VERSION="$1"
1010
ARCH=""
1111

1212
# Get the architecture (CPU, OS) of the current system as a string.
13-
# Only MacOS/x86_64/ARM64 and Linux/x86_64 architectures are supported.
13+
# Only MacOS/x86_64/ARM64 and Linux/x86_64/ARM64 architectures are supported.
1414
get_architecture() {
1515
_ostype="$(uname -s)"
1616
_cputype="$(uname -m)"
@@ -38,7 +38,7 @@ get_architecture() {
3838
x86_64 | x86-64 | x64 | amd64)
3939
_cputype=x86_64
4040
;;
41-
arm64)
41+
arm64 | aarch64)
4242
_cputype=arm64
4343
;;
4444
*)

internal/cadence/cadence.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"github.com/spf13/cobra"
2424

2525
"github.com/onflow/flow-cli/internal/cadence/languageserver"
26-
"github.com/onflow/flow-cli/internal/cadence/vscode"
2726
)
2827

2928
var Cmd = &cobra.Command{
@@ -40,5 +39,4 @@ var Cmd = &cobra.Command{
4039

4140
func init() {
4241
Cmd.AddCommand(languageserver.Cmd)
43-
Cmd.AddCommand(vscode.Cmd)
4442
}

internal/cadence/vscode/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

internal/cadence/vscode/cadence_bin.go

Lines changed: 0 additions & 274 deletions
This file was deleted.

internal/cadence/vscode/gen.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +0,0 @@
1-
/*
2-
* Flow CLI
3-
*
4-
* Copyright 2019 Dapper Labs, Inc.
5-
*
6-
* Licensed under the Apache License, Version 2.0 (the "License");
7-
* you may not use this file except in compliance with the License.
8-
* You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing, software
13-
* distributed under the License is distributed on an "AS IS" BASIS,
14-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
* See the License for the specific language governing permissions and
16-
* limitations under the License.
17-
*/
18-
19-
package vscode
20-
21-
//go:generate go run github.com/kevinburke/go-bindata/go-bindata -o ./cadence_bin.go --nometadata --pkg vscode ./cadence.vsix

internal/cadence/vscode/vscode.go

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +0,0 @@
1-
/*
2-
* Flow CLI
3-
*
4-
* Copyright 2019 Dapper Labs, Inc.
5-
*
6-
* Licensed under the Apache License, Version 2.0 (the "License");
7-
* you may not use this file except in compliance with the License.
8-
* You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing, software
13-
* distributed under the License is distributed on an "AS IS" BASIS,
14-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-
* See the License for the specific language governing permissions and
16-
* limitations under the License.
17-
*/
18-
19-
package vscode
20-
21-
import (
22-
"fmt"
23-
"io/ioutil"
24-
"os"
25-
"os/exec"
26-
27-
"github.com/spf13/cobra"
28-
29-
"github.com/onflow/flow-cli/pkg/flowkit/util"
30-
)
31-
32-
const cadenceExt = "cadence.vsix"
33-
34-
var Cmd = &cobra.Command{
35-
Use: "install-vscode-extension",
36-
Short: "Install the Cadence Visual Studio Code extension",
37-
Run: func(cmd *cobra.Command, args []string) {
38-
ext, _ := Asset(cadenceExt)
39-
40-
// create temporary directory
41-
dir, err := ioutil.TempDir("", "vscode-cadence")
42-
if err != nil {
43-
util.Exit(1, err.Error())
44-
}
45-
46-
// delete temporary directory
47-
defer os.RemoveAll(dir)
48-
49-
tmpCadenceExt := fmt.Sprintf("%s/%s", dir, cadenceExt)
50-
51-
err = ioutil.WriteFile(tmpCadenceExt, ext, 0644)
52-
if err != nil {
53-
util.Exit(1, err.Error())
54-
}
55-
56-
// run vscode command to install extension from temporary directory
57-
c := exec.Command("code", "--install-extension", tmpCadenceExt)
58-
err = c.Run()
59-
if err != nil {
60-
util.Exit(1, err.Error())
61-
}
62-
63-
fmt.Println("Installed the Cadence Visual Studio Code extension")
64-
},
65-
}

0 commit comments

Comments
 (0)