chore: fix flare-floss lints failing

This commit is contained in:
vee1e 2026-06-05 20:07:31 +05:30
parent 4c3f4bb64d
commit ca7385b121
No known key found for this signature in database
GPG key ID: EB498AFC60A7A01A
2 changed files with 10 additions and 26 deletions

View file

@ -27,11 +27,9 @@ go_versions = """
f = open("docker-compose.yml", "w")
f.write(
"""services:
f.write("""services:
app:
build: ."""
)
build: .""")
f.close()
@ -46,30 +44,22 @@ for arch in architecture.keys():
f = open("Dockerfile", "w")
f.write(
"""# syntax=docker/dockerfile:1
f.write("""# syntax=docker/dockerfile:1
FROM golang:{}
WORKDIR /app
COPY go.mod ./
RUN go mod download
COPY *.go ./
RUN GOOS=windows GOARCH={} go install main{}.go""".format(
version, arch, architecture[arch]
)
)
RUN GOOS=windows GOARCH={} go install main{}.go""".format(version, arch, architecture[arch]))
f.close()
f = open("go.mod", "w")
f.write(
"""module go-test
f.write("""module go-test
go {}
""".format(
version
)
)
""".format(version))
f.close()

View file

@ -25,11 +25,9 @@ rust_versions = """
f = open("docker-compose.yml", "w")
f.write(
"""services:
f.write("""services:
app:
build: ."""
)
build: .""")
f.close()
@ -46,8 +44,7 @@ for arch in architecture.keys():
target = architecture[arch]
f.write(
"""# syntax=docker/dockerfile:1
f.write("""# syntax=docker/dockerfile:1
FROM rust:{}
ENV USER root
RUN cargo new known_binary
@ -58,10 +55,7 @@ RUN rustup target add {}
RUN rustup update
RUN cargo build --release --target {}
""".format(
version, target, target
)
)
""".format(version, target, target))
f.close()
subprocess.call(["docker", "build", "--tag", "rust-test", "."])