Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 3ad180d

Browse files
Merge pull request #2257 from ibuildthecloud/aml
Bump aml
2 parents be8054c + 9baee91 commit 3ad180d

File tree

7 files changed

+15
-16
lines changed

7 files changed

+15
-16
lines changed

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ replace (
1313
require (
1414
cuelang.org/go v0.6.0
1515
github.com/AlecAivazis/survey/v2 v2.3.6
16-
github.com/acorn-io/aml v0.0.0-20231009045340-a31c45f6d100
17-
github.com/acorn-io/aml/cli v0.0.0-20231009055509-3c83c1247cf8
16+
github.com/acorn-io/aml v0.0.0-20231017143906-5a6098a42249
17+
github.com/acorn-io/aml/cli v0.0.0-20231018040203-8b7022061cc2
1818
github.com/acorn-io/aml/legacy v0.0.0-20230929081514-1e9f3394432e
1919
github.com/acorn-io/baaah v0.0.0-20231009165317-af2b68361b8a
2020
github.com/acorn-io/mink v0.0.0-20230804175412-8d121aae112c

go.sum

+4-4
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,10 @@ github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d h1:licZJFw2RwpH
107107
github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d/go.mod h1:asat636LX7Bqt5lYEZ27JNDcqxfjdBQuJ/MM4CN/Lzo=
108108
github.com/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ=
109109
github.com/acomagu/bufpipe v1.0.4/go.mod h1:mxdxdup/WdsKVreO5GpW4+M/1CE2sMG4jeGJ2sYmHc4=
110-
github.com/acorn-io/aml v0.0.0-20231009045340-a31c45f6d100 h1:BXiQnq8aT780sd6T3Hs1+BJgsJcl/MTz00QZbiJfylE=
111-
github.com/acorn-io/aml v0.0.0-20231009045340-a31c45f6d100/go.mod h1:I1qN++bfN+6sOV/FiACluqj2Eu5YaHOy82cTAnjLMf0=
112-
github.com/acorn-io/aml/cli v0.0.0-20231009055509-3c83c1247cf8 h1:eQhRTIMBGbufCcww4Shqenh3nhPjl2l87Itxecl9Qjk=
113-
github.com/acorn-io/aml/cli v0.0.0-20231009055509-3c83c1247cf8/go.mod h1:CQ8Bc6t6xgu/K8vU8rl5LBz45aTzTj1eL4yQYZy6zh8=
110+
github.com/acorn-io/aml v0.0.0-20231017143906-5a6098a42249 h1:Mclb6bw5z+L78eRW7qAZKVxDnGrWw9F1iabSaIK9Dtg=
111+
github.com/acorn-io/aml v0.0.0-20231017143906-5a6098a42249/go.mod h1:I1qN++bfN+6sOV/FiACluqj2Eu5YaHOy82cTAnjLMf0=
112+
github.com/acorn-io/aml/cli v0.0.0-20231018040203-8b7022061cc2 h1:NtTkTnXDg2EnZTxwUi27LytYy/dSqBWPC97ERZ+rgRU=
113+
github.com/acorn-io/aml/cli v0.0.0-20231018040203-8b7022061cc2/go.mod h1:/BeWMP1u6zv/s3x+hWxm+buKqKXnFKuEbqEBGpzcKi4=
114114
github.com/acorn-io/aml/legacy v0.0.0-20230929081514-1e9f3394432e h1:W67DG9AcoNvBwIOR9OFUCZlSJBaHuvM2kXQ2+C6EnLk=
115115
github.com/acorn-io/aml/legacy v0.0.0-20230929081514-1e9f3394432e/go.mod h1:XnJZSZq/tG/jWPE/tmm2zy90gOZrJRIaOyKpoMulxfE=
116116
github.com/acorn-io/baaah v0.0.0-20231009165317-af2b68361b8a h1:0bHfiYUw4ojXCUfGHUPmRewrgJ/EpLQ4BaR4yEy8BC4=

pkg/appdefinition/appdefinition.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"time"
1515

1616
"github.com/acorn-io/aml"
17-
"github.com/acorn-io/aml/cli/pkg/amlreadhelper"
1817
amllegacy "github.com/acorn-io/aml/legacy"
1918
"github.com/acorn-io/aml/pkg/eval"
2019
"github.com/acorn-io/aml/pkg/schema"
@@ -364,7 +363,7 @@ func addAcorns(fileSet map[string]bool, builds map[string]v1.AcornBuilderSpec, c
364363
if build.Build == nil {
365364
continue
366365
}
367-
data, err := amlreadhelper.ReadFile(filepath.Join(cwd, build.Build.Acornfile))
366+
data, err := aml.ReadFile(filepath.Join(cwd, build.Build.Acornfile))
368367
if err != nil {
369368
return
370369
}

pkg/build/build.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"time"
1111

12-
"github.com/acorn-io/aml/cli/pkg/amlreadhelper"
12+
"github.com/acorn-io/aml"
1313
"github.com/acorn-io/baaah/pkg/typed"
1414
apiv1 "github.com/acorn-io/runtime/pkg/apis/api.acorn.io/v1"
1515
v1 "github.com/acorn-io/runtime/pkg/apis/internal.acorn.io/v1"
@@ -30,7 +30,7 @@ import (
3030
)
3131

3232
func ResolveAndParse(file string) (*appdefinition.AppDefinition, error) {
33-
fileData, err := amlreadhelper.ReadFile(file)
33+
fileData, err := aml.ReadFile(file)
3434
if err != nil {
3535
return nil, err
3636
}

pkg/buildclient/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strings"
1111
"time"
1212

13-
"github.com/acorn-io/aml/cli/pkg/amlreadhelper"
13+
"github.com/acorn-io/aml"
1414
apiv1 "github.com/acorn-io/runtime/pkg/apis/api.acorn.io/v1"
1515
v1 "github.com/acorn-io/runtime/pkg/apis/internal.acorn.io/v1"
1616
"github.com/acorn-io/runtime/pkg/streams"
@@ -119,7 +119,7 @@ func Stream(ctx context.Context, cwd string, streams *streams.Output, dialer Web
119119
return nil, err
120120
}
121121
} else if msg.Acornfile != "" {
122-
data, err := amlreadhelper.ReadFile(filepath.Join(cwd, msg.Acornfile))
122+
data, err := aml.ReadFile(filepath.Join(cwd, msg.Acornfile))
123123
if err != nil {
124124
return nil, err
125125
}

pkg/cli/secret_create.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66
"strings"
77

8-
"github.com/acorn-io/aml/cli/pkg/amlreadhelper"
8+
"github.com/acorn-io/aml"
99
apiv1 "github.com/acorn-io/runtime/pkg/apis/api.acorn.io/v1"
1010
cli "github.com/acorn-io/runtime/pkg/cli/builder"
1111
"github.com/spf13/cobra"
@@ -44,7 +44,7 @@ func (a *SecretCreate) buildSecret() (*apiv1.Secret, error) {
4444
}{}
4545

4646
if a.File != "" {
47-
err := amlreadhelper.UnmarshalFile(a.File, secret)
47+
err := aml.UnmarshalFile(a.File, secret)
4848
if err != nil {
4949
return nil, fmt.Errorf("reading %s: %w", a.File, err)
5050
}

pkg/client/build.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66
"path/filepath"
77

8-
"github.com/acorn-io/aml/cli/pkg/amlreadhelper"
8+
"github.com/acorn-io/aml"
99
apiv1 "github.com/acorn-io/runtime/pkg/apis/api.acorn.io/v1"
1010
v1 "github.com/acorn-io/runtime/pkg/apis/internal.acorn.io/v1"
1111
"github.com/acorn-io/runtime/pkg/buildclient"
@@ -64,7 +64,7 @@ func (c *DefaultClient) AcornImageBuild(ctx context.Context, file string, opts *
6464
return nil, err
6565
}
6666

67-
fileData, err := amlreadhelper.ReadFile(file)
67+
fileData, err := aml.ReadFile(file)
6868
if err != nil {
6969
return nil, err
7070
}

0 commit comments

Comments
 (0)