Skip to content

Commit 5e71c88

Browse files
authored
fix: detect content type when returning storage files via URLs (#864)
1 parent 271ebcb commit 5e71c88

File tree

8 files changed

+95
-94
lines changed

8 files changed

+95
-94
lines changed

cmd/new.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package cmd
1919
import (
2020
"fmt"
2121

22-
tea "github.com/charmbracelet/bubbletea"
2322
"github.com/spf13/afero"
2423
"github.com/spf13/cobra"
2524

@@ -62,7 +61,7 @@ nitric new hello-world "official/TypeScript - Starter" `,
6261
tui.CheckErr(err)
6362

6463
// TODO add --force
65-
if _, err := teax.NewProgram(projectModel, tea.WithANSICompressor()).Run(); err != nil {
64+
if _, err := teax.NewProgram(projectModel).Run(); err != nil {
6665
return err
6766
}
6867

go.mod

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/nitrictech/cli
22

3-
go 1.22.1
3+
go 1.23.1
44

5-
toolchain go1.23.0
5+
toolchain go1.24.0
66

77
replace github.com/mattn/go-ieproxy => github.com/darthShadow/go-ieproxy v0.0.0-20220916090656-69928ad83ed6
88

@@ -26,19 +26,19 @@ require (
2626
github.com/pkg/errors v0.9.1
2727
github.com/spf13/cobra v1.8.1
2828
github.com/valyala/fasthttp v1.55.0
29-
golang.org/x/exp v0.0.0-20240904232852-e7e105dedf7e // indirect
29+
golang.org/x/exp v0.0.0-20250106191152-7588d65b2ba8 // indirect
3030
golang.org/x/mod v0.22.0 // indirect
31-
golang.org/x/oauth2 v0.22.0 // indirect
32-
google.golang.org/grpc v1.66.0
31+
golang.org/x/oauth2 v0.23.0 // indirect
32+
google.golang.org/grpc v1.69.4
3333
gopkg.in/yaml.v2 v2.4.0
3434
)
3535

3636
require (
3737
github.com/Masterminds/semver/v3 v3.3.1
3838
github.com/asaskevich/EventBus v0.0.0-20200907212545-49d423059eef
39-
github.com/charmbracelet/bubbles v0.16.1
40-
github.com/charmbracelet/bubbletea v0.24.2
41-
github.com/charmbracelet/lipgloss v0.8.0
39+
github.com/charmbracelet/bubbles v0.20.0
40+
github.com/charmbracelet/bubbletea v1.2.4
41+
github.com/charmbracelet/lipgloss v1.0.0
4242
github.com/ettle/strcase v0.2.0
4343
github.com/fasthttp/websocket v1.5.3
4444
github.com/golang-jwt/jwt/v5 v5.2.1
@@ -47,7 +47,7 @@ require (
4747
github.com/jackc/pgx/v5 v5.6.0
4848
github.com/joho/godotenv v1.5.1
4949
github.com/mattn/go-isatty v0.0.20
50-
github.com/nitrictech/nitric/cloud/common v0.0.0-20241003062412-76ea6275fb0b
50+
github.com/nitrictech/nitric/cloud/common v0.0.0-20250416075450-959094cfd18a
5151
github.com/olahol/melody v1.1.3
5252
github.com/robfig/cron/v3 v3.0.1
5353
github.com/samber/lo v1.38.1
@@ -57,7 +57,7 @@ require (
5757
github.com/wk8/go-ordered-map/v2 v2.1.8
5858
go.etcd.io/bbolt v1.3.6
5959
golang.org/x/sync v0.10.0
60-
google.golang.org/protobuf v1.34.2
60+
google.golang.org/protobuf v1.36.3
6161
gopkg.in/yaml.v3 v3.0.1
6262
)
6363

@@ -67,7 +67,7 @@ require (
6767
cloud.google.com/go v0.115.1 // indirect
6868
cloud.google.com/go/auth v0.9.3 // indirect
6969
cloud.google.com/go/auth/oauth2adapt v0.2.4 // indirect
70-
cloud.google.com/go/compute/metadata v0.5.0 // indirect
70+
cloud.google.com/go/compute/metadata v0.5.2 // indirect
7171
cloud.google.com/go/iam v1.2.0 // indirect
7272
cloud.google.com/go/storage v1.43.0 // indirect
7373
github.com/4meepo/tagalign v1.3.4 // indirect
@@ -107,14 +107,16 @@ require (
107107
github.com/ccojocar/zxcvbn-go v1.0.2 // indirect
108108
github.com/cespare/xxhash/v2 v2.3.0 // indirect
109109
github.com/charithe/durationcheck v0.0.10 // indirect
110+
github.com/charmbracelet/x/ansi v0.7.0 // indirect
111+
github.com/charmbracelet/x/term v0.2.1 // indirect
110112
github.com/chavacava/garif v0.1.0 // indirect
111113
github.com/ckaznocha/intrange v0.2.0 // indirect
112-
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
113114
github.com/curioswitch/go-reassign v0.2.0 // indirect
114115
github.com/daixiang0/gci v0.13.5 // indirect
115116
github.com/denis-tingaikin/go-header v0.5.0 // indirect
116117
github.com/distribution/reference v0.6.0 // indirect
117118
github.com/docker/go-units v0.5.0 // indirect
119+
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
118120
github.com/fatih/color v1.18.0 // indirect
119121
github.com/fatih/structtag v1.2.0 // indirect
120122
github.com/felixge/httpsnoop v1.0.4 // indirect
@@ -139,7 +141,7 @@ require (
139141
github.com/gobwas/glob v0.2.3 // indirect
140142
github.com/gofrs/flock v0.12.1 // indirect
141143
github.com/gogo/protobuf v1.3.2 // indirect
142-
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
144+
github.com/golang/groupcache v0.0.0-20241129210726-2c02b8208cf8 // indirect
143145
github.com/golang/protobuf v1.5.4 // indirect
144146
github.com/golangci/dupl v0.0.0-20180902072040-3e9179ac440a // indirect
145147
github.com/golangci/gofmt v0.0.0-20240816233607-d8596aa466a9 // indirect
@@ -193,7 +195,7 @@ require (
193195
github.com/matoous/godox v0.0.0-20230222163458-006bad1f9d26 // indirect
194196
github.com/mattn/go-colorable v0.1.13 // indirect
195197
github.com/mattn/go-localereader v0.0.1 // indirect
196-
github.com/mattn/go-runewidth v0.0.15 // indirect
198+
github.com/mattn/go-runewidth v0.0.16 // indirect
197199
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
198200
github.com/mgechev/revive v1.3.9 // indirect
199201
github.com/mitchellh/go-homedir v1.1.0 // indirect
@@ -203,7 +205,6 @@ require (
203205
github.com/moricho/tparallel v0.3.2 // indirect
204206
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
205207
github.com/muesli/cancelreader v0.2.2 // indirect
206-
github.com/muesli/reflow v0.3.0 // indirect
207208
github.com/muesli/termenv v0.15.2 // indirect
208209
github.com/nakabonne/nestif v0.3.1 // indirect
209210
github.com/nishanths/exhaustive v0.12.0 // indirect
@@ -226,7 +227,7 @@ require (
226227
github.com/quasilyte/gogrep v0.5.0 // indirect
227228
github.com/quasilyte/regex/syntax v0.0.0-20210819130434-b3f0c404a727 // indirect
228229
github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect
229-
github.com/rivo/uniseg v0.4.4 // indirect
230+
github.com/rivo/uniseg v0.4.7 // indirect
230231
github.com/ryancurrah/gomodguard v1.3.5 // indirect
231232
github.com/ryanrolds/sqlclosecheck v0.5.1 // indirect
232233
github.com/sanposhiho/wastedassign/v2 v2.0.7 // indirect
@@ -270,26 +271,25 @@ require (
270271
go.opencensus.io v0.24.0 // indirect
271272
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.54.0 // indirect
272273
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
273-
go.opentelemetry.io/otel v1.29.0 // indirect
274+
go.opentelemetry.io/otel v1.31.0 // indirect
274275
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.28.0 // indirect
275-
go.opentelemetry.io/otel/metric v1.29.0 // indirect
276-
go.opentelemetry.io/otel/sdk v1.29.0 // indirect
277-
go.opentelemetry.io/otel/trace v1.29.0 // indirect
276+
go.opentelemetry.io/otel/metric v1.31.0 // indirect
277+
go.opentelemetry.io/otel/sdk v1.31.0 // indirect
278+
go.opentelemetry.io/otel/trace v1.31.0 // indirect
278279
go.uber.org/automaxprocs v1.5.3 // indirect
279280
go.uber.org/multierr v1.11.0 // indirect
280281
go.uber.org/zap v1.27.0 // indirect
281282
golang.org/x/crypto v0.32.0 // indirect
282283
golang.org/x/exp/typeparams v0.0.0-20240314144324-c7f7c6466f7f // indirect
283284
golang.org/x/net v0.34.0 // indirect
284285
golang.org/x/sys v0.29.0 // indirect
285-
golang.org/x/term v0.28.0 // indirect
286286
golang.org/x/text v0.21.0 // indirect
287287
golang.org/x/time v0.6.0 // indirect
288-
golang.org/x/tools v0.28.0 // indirect
288+
golang.org/x/tools v0.29.0 // indirect
289289
google.golang.org/api v0.196.0 // indirect
290290
google.golang.org/genproto v0.0.0-20240903143218-8af14fe29dc1 // indirect
291-
google.golang.org/genproto/googleapis/api v0.0.0-20240827150818-7e3bb234dfed // indirect
292-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
291+
google.golang.org/genproto/googleapis/api v0.0.0-20241015192408-796eee8c2d53 // indirect
292+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250115164207-1a7da9e5054f // indirect
293293
gopkg.in/ini.v1 v1.67.0 // indirect
294294
honnef.co/go/tools v0.5.1 // indirect
295295
mvdan.cc/gofumpt v0.7.0 // indirect

0 commit comments

Comments
 (0)