Skip to content

Commit

Permalink
Merge pull request #67 from fluentci-io/fix/unix-domain-socket-path
Browse files Browse the repository at this point in the history
fix(agent): resolve issue with long unix domain socket path
  • Loading branch information
tsirysndr authored Aug 31, 2024
2 parents affee0c + c8c01ee commit 9649e3e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ Requirements:

**Latest (CLI):**

- `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)
- `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)
- `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)
- `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)

## ✨ Quick Start

Expand All @@ -110,7 +110,7 @@ fluentci studio
fluentci --help

Usage: fluentci [pipeline] [jobs...]
Version: 0.16.2
Version: 0.16.3

Description:

Expand Down
13 changes: 4 additions & 9 deletions src/cmd/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ async function startAgent() {

await spawnFluentCI(
logger,
`${dir("home")}/.fluentci/builds/${id}/${repoUrl
.split("/")
.pop()}/${workDir || "."}`,
`${dir("home")}/.fluentci/builds/${id}/${workDir || "."}`,
pipeline,
jobs,
runId,
Expand Down Expand Up @@ -195,21 +193,18 @@ async function extractZipBlob(blob: Blob, project_id: string, sha256: string) {
}

async function gitClone(url: string, id: string, branch?: string) {
await Deno.mkdir(`${dir("home")}/.fluentci/builds/${id}`, {
recursive: true,
});
await setupPkgx();
const git = new Deno.Command("pkgx", {
args: ["git", "clone", url],
cwd: `${dir("home")}/.fluentci/builds/${id}`,
args: ["git", "clone", url, id],
cwd: `${dir("home")}/.fluentci/builds`,
stdout: "inherit",
stderr: "inherit",
});

if (branch) {
await new Deno.Command("pkgx", {
args: ["git", "checkout", branch],
cwd: `${dir("home")}/.fluentci/builds/${id}/${url.split("/").pop()}`,
cwd: `${dir("home")}/.fluentci/builds/${id}`,
stdout: "inherit",
stderr: "inherit",
}).spawn().status;
Expand Down
2 changes: 1 addition & 1 deletion src/consts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { dir } from "../deps.ts";
export const VERSION = "0.16.2";
export const VERSION = "0.16.3";

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

Expand Down

0 comments on commit 9649e3e

Please sign in to comment.