Skip to content

Commit

Permalink
feat(release): Update Earthly
Browse files Browse the repository at this point in the history
  • Loading branch information
flemzord committed Feb 8, 2024
1 parent b43544b commit fed4682
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ build-final-spec:

RUN npm run build
RUN jq -s '.[0] * .[1]' build/generate.json openapi-overlay.json > build/latest.json
ARG version=INTERNAL
IF [ "$version" = "INTERNAL" ]
RUN sed -i 's/SDK_VERSION/INTERNAL/g' build/latest.json
ARG version=v0.0.0
IF [ "$version" = "v0.0.0" ]
RUN sed -i 's/SDK_VERSION/v0.0.0/g' build/latest.json
SAVE ARTIFACT build/latest.json AS LOCAL releases/build/latest.json
ELSE
RUN sed -i 's/SDK_VERSION/'$version'/g' build/latest.json
Expand Down
3 changes: 2 additions & 1 deletion releases/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ sources:
SAVE ARTIFACT /src

sdk-generate:
ARG version=INTERNAL
ARG version=v0.0.0
ARG LANG=go
FROM node:20-alpine
RUN apk update && apk add yq git
WORKDIR /src
COPY (stack+speakeasy/speakeasy) /bin/speakeasy
COPY (stack+build-final-spec/latest.json --version=$version) /src/releases/build/latest.json
WORKDIR /src/releases
COPY ./sdks/${LANG} ./sdks/${LANG}
RUN rm -rf ./sdks/${LANG}/gen.yaml ./sdks/${LANG}/LICENSE ./sdks/${LANG}/.github/workflows
COPY --dir templates/sdk/${LANG}/* ./sdks/${LANG}/
ENV key ".${LANG}.version"
Expand Down
10 changes: 5 additions & 5 deletions releases/sdks/go/.speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 0164d88e-bfd9-419d-9d0f-90816ea32128
id: 7eac0a45-60a2-40bb-9e85-26bd77ec2a6d
management:
docChecksum: cd56345df44c1e643e02cc348f36bb9c
docVersion: INTERNAL
docChecksum: d1db8363e734da8fc5b1a50567809988
docVersion: v0.0.0
speakeasyVersion: internal
generationVersion: 2.237.2
releaseVersion: INTERNAL
configChecksum: e50c6680fe4752e48826e1e4523f0eb4
releaseVersion: v0.0.0
configChecksum: 50130ac1de5d0825ab31d45fbe3aac35
features:
go:
constsAndDefaults: 0.1.2
Expand Down
6 changes: 3 additions & 3 deletions releases/sdks/go/formance.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ func New(opts ...SDKOption) *Formance {
sdk := &Formance{
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "INTERNAL",
SDKVersion: "INTERNAL",
OpenAPIDocVersion: "v0.0.0",
SDKVersion: "v0.0.0",
GenVersion: "2.237.2",
UserAgent: "speakeasy-sdk/go INTERNAL 2.237.2 INTERNAL github.com/formancehq/formance-sdk-go/v2",
UserAgent: "speakeasy-sdk/go v0.0.0 2.237.2 v0.0.0 github.com/formancehq/formance-sdk-go/v2",
},
}
for _, opt := range opts {
Expand Down
2 changes: 1 addition & 1 deletion releases/sdks/go/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ generation:
nameResolutionDec2023: false
telemetryEnabled: false
go:
version: INTERNAL
version: v0.0.0
author: Formance
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: false
Expand Down

0 comments on commit fed4682

Please sign in to comment.