Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/go-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ permissions:

jobs:
audit-reusable:
uses: esacteksab/.github/.github/workflows/go-ci.yml@f6ca4d5de20efe4818ca1511619a39ff5e11f6bb #v0.16.0
uses: esacteksab/.github/.github/workflows/go-ci.yml@7e23f856d6827f3160457e7e141ebb92c60ab597 # v0.19.0
2 changes: 1 addition & 1 deletion .github/workflows/go-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ permissions:

jobs:
golangci-reusable:
uses: esacteksab/.github/.github/workflows/golangci-lint.yml@f6ca4d5de20efe4818ca1511619a39ff5e11f6bb #v0.16.0
uses: esacteksab/.github/.github/workflows/golangci-lint.yml@7e23f856d6827f3160457e7e141ebb92c60ab597 # v0.19.0
2 changes: 1 addition & 1 deletion .github/workflows/go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ permissions:

jobs:
goreleaser-reusable:
uses: esacteksab/.github/.github/workflows/go-release.yml@f6ca4d5de20efe4818ca1511619a39ff5e11f6bb #v0.16.0
uses: esacteksab/.github/.github/workflows/go-release.yml@7e23f856d6827f3160457e7e141ebb92c60ab597 # v0.19.0
2 changes: 1 addition & 1 deletion .github/workflows/go-test-in-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ permissions:

jobs:
go-test-docker:
uses: esacteksab/.github/.github/workflows/go-test-in-docker.yml@f6ca4d5de20efe4818ca1511619a39ff5e11f6bb #v0.16.0
uses: esacteksab/.github/.github/workflows/go-test-in-docker.yml@7e23f856d6827f3160457e7e141ebb92c60ab597 # v0.19.0
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ permissions:

jobs:
golangci-reusable:
uses: esacteksab/.github/.github/workflows/golangci-lint.yml@f6ca4d5de20efe4818ca1511619a39ff5e11f6bb #v0.16.0
uses: esacteksab/.github/.github/workflows/golangci-lint.yml@7e23f856d6827f3160457e7e141ebb92c60ab597 # v0.19.0
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ permissions:

jobs:
label-pr:
uses: esacteksab/.github/.github/workflows/labeler.yml@f6ca4d5de20efe4818ca1511619a39ff5e11f6bb #v0.16.0
uses: esacteksab/.github/.github/workflows/labeler.yml@7e23f856d6827f3160457e7e141ebb92c60ab597 # v0.19.0
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ permissions:

jobs:
precommit-reusable:
uses: esacteksab/.github/.github/workflows/pre-commit.yml@f6ca4d5de20efe4818ca1511619a39ff5e11f6bb #v0.16.0
uses: esacteksab/.github/.github/workflows/pre-commit.yml@7e23f856d6827f3160457e7e141ebb92c60ab597 # v0.19.0
2 changes: 1 addition & 1 deletion .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ concurrency:

jobs:
typos-reusable:
uses: esacteksab/.github/.github/workflows/spelling.yml@f6ca4d5de20efe4818ca1511619a39ff5e11f6bb #v0.16.0
uses: esacteksab/.github/.github/workflows/spelling.yml@7e23f856d6827f3160457e7e141ebb92c60ab597 # v0.19.0
2 changes: 1 addition & 1 deletion .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ permissions:

jobs:
goreleaser-check-reusable:
uses: esacteksab/.github/.github/workflows/tools.yml@f6ca4d5de20efe4818ca1511619a39ff5e11f6bb #v0.16.0
uses: esacteksab/.github/.github/workflows/tools.yml@7e23f856d6827f3160457e7e141ebb92c60ab597 # v0.19.0
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ repos:
- -i .

- repo: https://github.com/google/keep-sorted
rev: v0.7.0
rev: v0.7.1
hooks:
- id: keep-sorted

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.33.2
rev: 0.34.0
hooks:
- id: check-github-workflows
- id: check-dependabot
Expand Down Expand Up @@ -131,7 +131,7 @@ repos:
- mdformat-footnote

- repo: https://github.com/crate-ci/typos
rev: v1.35.4
rev: v1.36.2
hooks:
- id: typos
args: [--force-exclude]
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
golang 1.25.0
nodejs 22.16.0
python 3.12.11
pnpm 10.14.0
pnpm 10.17.0
6 changes: 4 additions & 2 deletions cmd/clear.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
package cmd

import (
"errors"
"fmt"
"io/fs"
"os"
"path/filepath"

Expand Down Expand Up @@ -43,7 +45,7 @@ Requires the --force flag to proceed.`,
// 1. Check if the target path exists and is accessible
_, err = os.Stat(cachePath)
if err != nil {
if os.IsNotExist(err) {
if errors.Is(err, fs.ErrNotExist) {
// Directory doesn't exist - this is a successful 'clear' state.
fmt.Printf(
"Cache directory '%s' does not exist. Nothing to clear.\n",
Expand Down Expand Up @@ -74,7 +76,7 @@ Requires the --force flag to proceed.`,

// 4. Verify deletion
_, err = os.Stat(cachePath)
if os.IsNotExist(err) {
if errors.Is(err, fs.ErrNotExist) {
// Expected outcome: stat fails with IsNotExist
fmt.Printf("Cache directory '%s' removed successfully.\n", cachePath)
} else if err != nil {
Expand Down
6 changes: 4 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ package cmd

import (
"context"
"errors"
"fmt"
"io/fs"
"log"
"os"
"path/filepath"
Expand Down Expand Up @@ -95,7 +97,7 @@ var rootCmd = &cobra.Command{
workflows, err := os.ReadDir(workflowsDir)
if err != nil {
// If the directory doesn't exist, provide a specific error message.
if os.IsNotExist(err) {
if errors.Is(err, fs.ErrNotExist) {
log.Printf("Workflows directory not found: %s", workflowsDir)
}
// For any other error reading the directory, log a error.
Expand All @@ -109,7 +111,7 @@ var rootCmd = &cobra.Command{
actions, err := os.ReadDir(ghDir)
if err != nil {
// if the directory doesn't exist, provide a specific error message.
if os.IsNotExist(err) {
if errors.Is(err, fs.ErrNotExist) {
log.Fatalf("GitHub directory not found: %s", ghDir)
}
// for any other error reading the directory, log a fatal error.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"packageManager": "pnpm@10.13.1",
"packageManager": "pnpm@10.17.0",
"devDependencies": {
"npm": "^11.6.0",
"prettier": "^3.6.2",
Expand Down