Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(agent): resolve issue with long unix domain socket path #67

Merged
merged 1 commit into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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