diff --git a/.air.toml b/.air.toml new file mode 100644 index 00000000..40b0a72e --- /dev/null +++ b/.air.toml @@ -0,0 +1,51 @@ +root = "." +testdata_dir = "testdata" +tmp_dir = "tmp" + +[build] + args_bin = ["-c ./config.dev.yaml"] + bin = "./dist/glide" + cmd = "make build" + delay = 1000 + exclude_dir = ["assets", "tmp", "vendor", "testdata"] + exclude_file = [] + exclude_regex = ["_test.go"] + exclude_unchanged = false + follow_symlink = false + full_bin = "" + include_dir = [] + include_ext = ["go", "tpl", "tmpl", "html"] + include_file = [] + kill_delay = "0s" + log = "build-errors.log" + poll = false + poll_interval = 0 + post_cmd = [] + pre_cmd = [] + rerun = false + rerun_delay = 500 + send_interrupt = false + stop_on_error = false + +[color] + app = "" + build = "yellow" + main = "magenta" + runner = "green" + watcher = "cyan" + +[log] + main_only = false + time = false + +[misc] + clean_on_exit = false + +[proxy] + app_port = 0 + enabled = false + proxy_port = 0 + +[screen] + clear_on_rebuild = false + keep_scroll = true diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index e504ec17..4addd769 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -23,7 +23,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.22" + go-version: "1.22.4" check-latest: true - name: Install @@ -56,7 +56,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.22" + go-version: "1.22.4" check-latest: true - name: Build run: go build -v ./... @@ -70,7 +70,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.22" + go-version: "1.22.4" check-latest: true - name: Install nilaway @@ -95,7 +95,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.22" + go-version: "1.22.4" check-latest: true - name: Test @@ -121,7 +121,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: "1.22" + go-version: "1.22.4" check-latest: true - name: Generate OpenAPI Schema diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 69f01d09..e3d1d6ab 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -23,7 +23,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: 1.22 + go-version: 1.22.4 - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/vuln.yaml b/.github/workflows/vuln.yaml index aa26598c..d24340c1 100644 --- a/.github/workflows/vuln.yaml +++ b/.github/workflows/vuln.yaml @@ -27,7 +27,7 @@ jobs: - name: Install Go uses: actions/setup-go@v4 with: - go-version: '1.22.1' + go-version: '1.22.4' check-latest: true - name: Checkout diff --git a/.go-version b/.go-version index 71f7f51d..be02b337 100644 --- a/.go-version +++ b/.go-version @@ -1 +1 @@ -1.22 +1.22.4 \ No newline at end of file diff --git a/Makefile b/Makefile index 1151234f..d2782e71 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ vuln: install-checkers ## Check for vulnerabilities @$(CHECKER_BIN)/gosec -quiet -exclude=G104 ./... run: ## Run Glide - @go run -ldflags $(LDFLAGS_COMMON) main.go -c ./config.dev.yaml + @air -c .air.toml build: ## Build Glide @echo "🔨Building Glide binary.." diff --git a/README.md b/README.md index b3403d65..f1d5e319 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@