From 2cad93be9761576a553e9f0507e4eab0fe12046f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez=20Di=20Antonio?= Date: Sun, 17 May 2026 13:54:31 +0200 Subject: [PATCH 1/4] fix: remove unnecessary workflow --- .github/workflows/main.yml | 81 -------------------------------------- 1 file changed, 81 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 1ca7672..0000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,81 +0,0 @@ -name: Main - -on: - push: - branches: - - main - -permissions: - contents: read - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v6 - - - name: Set up Go - uses: actions/setup-go@v6 - with: - go-version-file: ./go.mod - cache: true - - - name: Summary Information - run: | - echo "# Push Summary" > "$GITHUB_STEP_SUMMARY" - echo "" >> "$GITHUB_STEP_SUMMARY" - echo "**Repository:** ${{ github.repository }}" >> "$GITHUB_STEP_SUMMARY" - echo "**Push:** ${{ github.event.head_commit.message }}" >> "$GITHUB_STEP_SUMMARY" - echo "**Author:** ${{ github.event.head_commit.author.name }}" >> "$GITHUB_STEP_SUMMARY" - echo "**Branch:** ${{ github.ref }}" >> "$GITHUB_STEP_SUMMARY" - echo "" >> "$GITHUB_STEP_SUMMARY" - - - name: Tools and versions - run: | - echo "## Tools and versions" >> "$GITHUB_STEP_SUMMARY" - echo "**Ubuntu Version:** $(lsb_release -ds)" >> "$GITHUB_STEP_SUMMARY" - echo "**Bash Version:** $(bash --version | head -n 1 | awk '{print $4}')" >> "$GITHUB_STEP_SUMMARY" - echo "**Git Version:** $(git --version | awk '{print $3}')" >> "$GITHUB_STEP_SUMMARY" - echo "**Go Version:** $(go version | awk '{print $3}')" >> "$GITHUB_STEP_SUMMARY" - echo "" >> "$GITHUB_STEP_SUMMARY" - - - name: Format check - run: | - echo "## Format check" >> "$GITHUB_STEP_SUMMARY" - files=$(gofmt -l .) - if [ -n "$files" ]; then - echo "$files" - echo "The files above need gofmt." >> "$GITHUB_STEP_SUMMARY" - exit 1 - fi - echo "All Go files are gofmt-formatted." >> "$GITHUB_STEP_SUMMARY" - echo "" >> "$GITHUB_STEP_SUMMARY" - - - name: Vet - run: | - echo "## Vet" >> "$GITHUB_STEP_SUMMARY" - go vet ./... | tee -a "$GITHUB_STEP_SUMMARY" - echo "" >> "$GITHUB_STEP_SUMMARY" - - - name: Test - run: | - echo "## Test report" >> "$GITHUB_STEP_SUMMARY" - go test -race -coverprofile=coverage.txt -covermode=atomic ./... | tee -a "$GITHUB_STEP_SUMMARY" - echo "" >> "$GITHUB_STEP_SUMMARY" - - - name: Test coverage - run: | - echo "## Test coverage" >> "$GITHUB_STEP_SUMMARY" - echo '```' >> "$GITHUB_STEP_SUMMARY" - go tool cover -func=coverage.txt | tee -a "$GITHUB_STEP_SUMMARY" - echo '```' >> "$GITHUB_STEP_SUMMARY" - echo "" >> "$GITHUB_STEP_SUMMARY" - total_coverage=$(go tool cover -func=coverage.txt | grep total | awk '{print $3}') - echo "**Total Coverage:** $total_coverage" >> "$GITHUB_STEP_SUMMARY" - - - name: Build - run: | - echo "## Build" >> "$GITHUB_STEP_SUMMARY" - go build ./... | tee -a "$GITHUB_STEP_SUMMARY" - echo "Build completed successfully." >> "$GITHUB_STEP_SUMMARY" From 6de0db6aaf6dce766e440e9e86a8f8c0b94bbf7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez=20Di=20Antonio?= Date: Sun, 17 May 2026 14:09:25 +0200 Subject: [PATCH 2/4] chore: vscode setting --- .vscode/settings.json | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..5f1f0aa --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "cSpell.words": [ + "slashdevops" + ] +} \ No newline at end of file From 9a0c0f972f7ccf1b89364ccb653edfb758d3fe41 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 17 May 2026 12:20:31 +0000 Subject: [PATCH 3/4] Disable CodeQL SARIF upload when GHAS is unavailable Agent-Logs-Url: https://github.com/slashdevops/fsx/sessions/e3af3d8f-fd7d-44e5-8551-42c09df8a8e1 Co-authored-by: christiangda <1197820+christiangda@users.noreply.github.com> --- .github/workflows/codeql.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index bbee9a4..467762e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -42,3 +42,4 @@ jobs: uses: github/codeql-action/analyze@v4 with: category: /language:${{ matrix.language }} + upload: false From a502977c725fa410c4b8513373d01670a5b565d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez=20Di=20Antonio?= Date: Sun, 17 May 2026 14:24:39 +0200 Subject: [PATCH 4/4] docs: mention standard library only --- README.md | 6 +++--- doc.go | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d650843..6a91894 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ `fsx` is a small Go package for filesystem helpers that sit just above `os` and `path/filepath`. It is designed for applications that need compact, easy-to-review helpers for expanded user paths, containment checks, file predicates, extension matching, and atomic writes. -The package is standard-library-only and intentionally keeps one short package name instead of exposing broad `utils` packages. +The package is standard-library-only, has no external module dependencies, and targets the latest Go toolchain version declared in `go.mod`. It intentionally keeps one short package name instead of exposing broad `utils` packages. ## Features @@ -35,8 +35,8 @@ go get -u github.com/slashdevops/fsx ## Requirements -- Go 1.26.3 or newer -- No external Go modules +- Go 1.26.3 or newer, matching the latest Go version declared by the module +- No external Go modules or third-party dependencies ## Quick Start diff --git a/doc.go b/doc.go index 96f8f3b..3ade8ca 100644 --- a/doc.go +++ b/doc.go @@ -1,5 +1,5 @@ // Package fsx provides small filesystem helpers built only on the Go standard -// library. +// library and targets the latest Go toolchain version declared by the module. // // The package focuses on behavior that is useful across command-line tools and // services: @@ -25,6 +25,7 @@ // // # Dependencies // -// fsx has zero third-party dependencies. It uses os, path/filepath, strings, and -// other standard library packages. +// fsx has zero third-party dependencies and no external module requirements. It +// uses os, path/filepath, strings, and other standard library packages, and the +// module currently targets Go 1.26.3. package fsx