mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Modify RAD env vars based on heartwood rc.6
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
||||
cobUrl,
|
||||
expect,
|
||||
markdownUrl,
|
||||
shortBobHead,
|
||||
sourceBrowsingRid,
|
||||
sourceBrowsingUrl,
|
||||
test,
|
||||
@@ -362,7 +363,9 @@ test("peer and branch switching", async ({ page }) => {
|
||||
{
|
||||
await expect(page.getByRole("button", { name: "main" })).toBeVisible();
|
||||
await expect(
|
||||
page.getByRole("button", { name: "ff32f18 Update readme" }).first(),
|
||||
page
|
||||
.getByRole("button", { name: `${shortBobHead} Update readme` })
|
||||
.first(),
|
||||
).toBeVisible();
|
||||
await expect(
|
||||
page.getByRole("link", {
|
||||
@@ -370,7 +373,9 @@ test("peer and branch switching", async ({ page }) => {
|
||||
}),
|
||||
).toBeVisible();
|
||||
await expect(
|
||||
page.getByRole("button", { name: "ff32f18 Update readme" }).first(),
|
||||
page
|
||||
.getByRole("button", { name: `${shortBobHead} Update readme` })
|
||||
.first(),
|
||||
).toBeVisible();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -659,7 +659,7 @@ export const aliceRemote =
|
||||
"did:key:z6MkqGC3nWZhYieEVTVDKW5v588CiGfsDSmRVG9ZwwWTvLSK";
|
||||
export const bobRemote =
|
||||
"did:key:z6Mkg49NtQR2LyYRDCQFK4w1VVHqhypZSSRo7HsyuN7SV7v5";
|
||||
export const bobHead = "ff32f18dc09d82bff329ffcd96fd5eba2d7f826c";
|
||||
export const bobHead = "79b0b2522c0d406d398cb5b7b381455294e1489f";
|
||||
export const shortBobHead = formatCommit(bobHead);
|
||||
export const sourceBrowsingRid = "rad:z4BwwjPCFNVP27FwVbDFgwVwkjcir";
|
||||
export const cobRid = "rad:z3fpY7nttPPa6MBnAv2DccHzQJnqe";
|
||||
@@ -685,6 +685,6 @@ export const gitOptions = {
|
||||
GIT_AUTHOR_DATE: "1671125284",
|
||||
GIT_COMMITTER_NAME: "Bob Belcher",
|
||||
GIT_COMMITTER_EMAIL: "bob@radicle.xyz",
|
||||
GIT_COMMITTER_DATE: "Mon Dec 21 14:00 2022 +0100",
|
||||
GIT_COMMITTER_DATE: "1671627600",
|
||||
},
|
||||
};
|
||||
|
||||
@@ -238,7 +238,7 @@ export class RadiclePeer {
|
||||
...gitOptions,
|
||||
RAD_HOME: radHome,
|
||||
RAD_PASSPHRASE: "asdf",
|
||||
RAD_SEED: node,
|
||||
RAD_KEYGEN_SEED: node,
|
||||
RAD_SOCKET: socket,
|
||||
};
|
||||
|
||||
@@ -412,8 +412,8 @@ export class RadiclePeer {
|
||||
GIT_CONFIG_NOSYSTEM: "1",
|
||||
RAD_HOME: this.#radHome,
|
||||
RAD_PASSPHRASE: "asdf",
|
||||
RAD_COMMIT_TIME: "1671125284",
|
||||
RAD_SEED: this.#radSeed,
|
||||
RAD_LOCAL_TIME: "1671125284",
|
||||
RAD_KEYGEN_SEED: this.#radSeed,
|
||||
RAD_SOCKET: this.#socket,
|
||||
...opts?.env,
|
||||
...this.#gitOptions,
|
||||
|
||||
@@ -15,7 +15,7 @@ export function createOptions(projectFolder: string, days: number): Options {
|
||||
return {
|
||||
cwd: projectFolder,
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
env: { RAD_COMMIT_TIME: (1671211684 + days * 86400).toString() },
|
||||
env: { RAD_LOCAL_TIME: (1671211684 + days * 86400).toString() },
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user