Skip to content

Commit 9ffa223

Browse files
authored
Website now uses melpa_snapshot_versions.json instead of snapshot_versions.json (#27)
1 parent 2e9c121 commit 9ffa223

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

Dockerfile

+8-8
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@ FROM snapshot-versions-getter-base as snapshot-versions-getter-prod
3131

3232
RUN apk add --no-cache wget
3333

34-
RUN wget --check-certificate https://delpa.org/snapshot_versions.json && \
35-
wget --check-certificate https://delpa.org/snapshot_versions.json.sha256
34+
RUN wget --check-certificate https://delpa.org/melpa_snapshot_versions.json && \
35+
wget --check-certificate https://delpa.org/melpa_snapshot_versions.json.sha256
3636

37-
# Verify that snapshot_versions.json is in the sha256 checksum file and verify
38-
# checksum
39-
RUN grep snapshot_versions.json snapshot_versions.json.sha256 && \
40-
sha256sum -c snapshot_versions.json.sha256
37+
# Verify that melpa_snapshot_versions.json is in the sha256 checksum file and
38+
# verify checksum
39+
RUN grep melpa_snapshot_versions.json melpa_snapshot_versions.json.sha256 && \
40+
sha256sum -c melpa_snapshot_versions.json.sha256
4141

4242
# Test snapshot versions
4343
FROM snapshot-versions-getter-base as snapshot-versions-getter-test
4444

45-
COPY ./snapshot_versions.json .
45+
COPY ./melpa_snapshot_versions.json .
4646

4747
FROM snapshot-versions-getter-${snapshot_versions_type} as snapshot-versions-getter
4848

@@ -52,7 +52,7 @@ FROM docker.io/node:22.12.0-alpine@sha256:6e80991f69cc7722c561e5d14d5e72ab47c0d6
5252
COPY package.json package-lock.json ./
5353
RUN npm install -g npm && npm install
5454
COPY . .
55-
COPY --from=snapshot-versions-getter ./snapshot_versions.json .
55+
COPY --from=snapshot-versions-getter ./melpa_snapshot_versions.json .
5656
RUN npx tsx gen_caddy.ts > Caddyfile
5757

5858
FROM docker.io/caddy:2.8.4-alpine@sha256:e97e0e3f8f51be708a9d5fadbbd75e3398c22fc0eecd4b26d48561e3f7daa9eb

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ After starting the test server, to run test:
5151

5252
npm run test
5353

54-
The `snapshot_versions.json` file in this repo is deliberately set wrong and for
55-
test purpose only. In production build, it will be replaced by the file grabbed
56-
from https://delpa.org/snapshot_versions.json.
54+
The `melpa_snapshot_versions.json` file in this repo is deliberately set wrong
55+
and for test purpose only. In production build, it will be replaced by the file
56+
grabbed from https://delpa.org/melpa_snapshot_versions.json.
5757

5858
## Bug Report and Feature Request
5959

gen_caddy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
/** Generate the caddyfile. */
2020

21-
import snapshotVersions from "./snapshot_versions.json" with { type: "json" };
21+
import snapshotVersions from "./melpa_snapshot_versions.json" with { type: "json" };
2222

2323
const snapshotVersionsRegexp = snapshotVersions.join("|");
2424

File renamed without changes.

0 commit comments

Comments
 (0)