Skip to content

Commit 06807d7

Browse files
committed
lint
1 parent e8afab7 commit 06807d7

15 files changed

+490
-407
lines changed

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/dagger.gen.go linguist-generated
2+
/internal/dagger/** linguist-generated
3+
/internal/querybuilder/** linguist-generated
4+
/internal/telemetry/** linguist-generated

README.md

+16-21
Original file line numberDiff line numberDiff line change
@@ -100,37 +100,32 @@ Windows | ✅
100100

101101
# Installation
102102

103-
## Build From Source
104-
105-
```bash
106-
git clone https://github.com/goharbor/harbor-cli.git
107-
cd harbor-cli/cmd/harbor
108-
go build .
109-
sudo mv harbor /usr/local/bin/
110-
```
111103

112104
## Linux and MacOS
113105

114-
use `amd64/arm64` as per your system architecture
106+
Homebrew is the recommended way to install Harbor CLI on MacOS and Linux.
115107

116-
```bash
117-
## Linux
118-
tar -xzf harbor_0.0.1_linux_amd64.tar.gz
119-
cd harbor_0.0.1_linux_amd64
120-
sudo mv harbor /usr/local/bin/
121-
122-
## MacOS
123-
tar -xzf harbor_0.0.1_darwin_amd64.tar.gz
124-
cd harbor_0.0.1_darwin_amd64
125-
sudo mv harbor /usr/local/bin/
126-
```
127108

128109
## Windows
129110

130-
```bash
111+
```shell
112+
131113
winget install harbor
114+
132115
```
133116

117+
118+
119+
# Build From Source
120+
121+
Make sure you have latest [Dagger](https://docs.dagger.io/) installed in your system.
122+
123+
```bash
124+
git clone https://github.com/goharbor/harbor-cli.git
125+
dagger call build
126+
```
127+
128+
134129
# Community
135130

136131
* **Twitter:** [@project_harbor](https://twitter.com/project_harbor)

dagger.gen.go

+40-103
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dagger.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
}
99
],
1010
"source": ".",
11-
"engineVersion": "v0.12.3"
11+
"engineVersion": "v0.13.3"
1212
}

go.mod

+15-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/spf13/viper v1.19.0
1313
github.com/stretchr/testify v1.9.0
1414
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56
15-
golang.org/x/sync v0.7.0
15+
golang.org/x/sync v0.8.0
1616
)
1717

1818
require (
@@ -74,7 +74,7 @@ require (
7474
github.com/go-openapi/validate v0.24.0 // indirect
7575
github.com/goharbor/go-client v0.210.0
7676
github.com/google/uuid v1.6.0 // indirect
77-
github.com/grpc-ecosystem/grpc-gateway/v2 v2.21.0 // indirect
77+
github.com/grpc-ecosystem/grpc-gateway/v2 v2.22.0 // indirect
7878
github.com/inconshreveable/mousetrap v1.1.0 // indirect
7979
github.com/josharian/intern v1.0.0 // indirect
8080
github.com/mailru/easyjson v0.7.7 // indirect
@@ -98,11 +98,19 @@ require (
9898
go.opentelemetry.io/otel/sdk/log v0.4.0
9999
go.opentelemetry.io/otel/trace v1.28.0
100100
go.opentelemetry.io/proto/otlp v1.3.1
101-
golang.org/x/net v0.27.0 // indirect
102-
golang.org/x/sys v0.22.0 // indirect
103-
golang.org/x/text v0.16.0 // indirect
104-
google.golang.org/genproto/googleapis/api v0.0.0-20240725223205-93522f1f2a9f // indirect
105-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240725223205-93522f1f2a9f // indirect
101+
golang.org/x/net v0.29.0 // indirect
102+
golang.org/x/sys v0.25.0 // indirect
103+
golang.org/x/text v0.18.0 // indirect
104+
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect
105+
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
106106
google.golang.org/grpc v1.65.0
107107
google.golang.org/protobuf v1.34.2 // indirect
108108
)
109+
110+
replace go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc => go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.0.0-20240518090000-14441aefdf88
111+
112+
replace go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp => go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.3.0
113+
114+
replace go.opentelemetry.io/otel/log => go.opentelemetry.io/otel/log v0.3.0
115+
116+
replace go.opentelemetry.io/otel/sdk/log => go.opentelemetry.io/otel/sdk/log v0.3.0

0 commit comments

Comments
 (0)