Skip to content

Commit 9649e3e

Browse files
authored
Merge pull request #67 from fluentci-io/fix/unix-domain-socket-path
fix(agent): resolve issue with long unix domain socket path
2 parents affee0c + c8c01ee commit 9649e3e

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ Requirements:
8686

8787
**Latest (CLI):**
8888

89-
- `Mac`: arm64: [fluentci_v0.16.2_aarch64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.16.2/fluentci_v0.16.2_aarch64-apple-darwin.tar.gz) intel: [fluentci_v0.16.2_x86_64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.16.2/fluentci_v0.16.2_x86_64-apple-darwin.tar.gz)
90-
- `Linux`: intel: [fluentci_v0.16.2_x86_64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.16.2/fluentci_v0.16.2_x86_64-unknown-linux-gnu.tar.gz) arm64: [fluentci_v0.16.2_aarch64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.16.2/fluentci_v0.16.2_aarch64-unknown-linux-gnu.tar.gz)
89+
- `Mac`: arm64: [fluentci_v0.16.3_aarch64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.16.3/fluentci_v0.16.3_aarch64-apple-darwin.tar.gz) intel: [fluentci_v0.16.3_x86_64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.16.3/fluentci_v0.16.3_x86_64-apple-darwin.tar.gz)
90+
- `Linux`: intel: [fluentci_v0.16.3_x86_64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.16.3/fluentci_v0.16.3_x86_64-unknown-linux-gnu.tar.gz) arm64: [fluentci_v0.16.3_aarch64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci/releases/download/v0.16.3/fluentci_v0.16.3_aarch64-unknown-linux-gnu.tar.gz)
9191

9292
## ✨ Quick Start
9393

@@ -110,7 +110,7 @@ fluentci studio
110110
fluentci --help
111111

112112
Usage: fluentci [pipeline] [jobs...]
113-
Version: 0.16.2
113+
Version: 0.16.3
114114

115115
Description:
116116

src/cmd/agent.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,7 @@ async function startAgent() {
9595

9696
await spawnFluentCI(
9797
logger,
98-
`${dir("home")}/.fluentci/builds/${id}/${repoUrl
99-
.split("/")
100-
.pop()}/${workDir || "."}`,
98+
`${dir("home")}/.fluentci/builds/${id}/${workDir || "."}`,
10199
pipeline,
102100
jobs,
103101
runId,
@@ -195,21 +193,18 @@ async function extractZipBlob(blob: Blob, project_id: string, sha256: string) {
195193
}
196194

197195
async function gitClone(url: string, id: string, branch?: string) {
198-
await Deno.mkdir(`${dir("home")}/.fluentci/builds/${id}`, {
199-
recursive: true,
200-
});
201196
await setupPkgx();
202197
const git = new Deno.Command("pkgx", {
203-
args: ["git", "clone", url],
204-
cwd: `${dir("home")}/.fluentci/builds/${id}`,
198+
args: ["git", "clone", url, id],
199+
cwd: `${dir("home")}/.fluentci/builds`,
205200
stdout: "inherit",
206201
stderr: "inherit",
207202
});
208203

209204
if (branch) {
210205
await new Deno.Command("pkgx", {
211206
args: ["git", "checkout", branch],
212-
cwd: `${dir("home")}/.fluentci/builds/${id}/${url.split("/").pop()}`,
207+
cwd: `${dir("home")}/.fluentci/builds/${id}`,
213208
stdout: "inherit",
214209
stderr: "inherit",
215210
}).spawn().status;

src/consts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { dir } from "../deps.ts";
2-
export const VERSION = "0.16.2";
2+
export const VERSION = "0.16.3";
33

44
export const BASE_URL = "https://api.fluentci.io/v1";
55

0 commit comments

Comments
 (0)