This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go-samples.git
The following commit(s) were added to refs/heads/main by this push:
new f75c8893 Fix: Fix ci fail (#861)
f75c8893 is described below
commit f75c88938a0922e4e28fce1b7f8265a8e01f4739
Author: Xuetao Li <[email protected]>
AuthorDate: Tue Jun 24 11:45:29 2025 +0800
Fix: Fix ci fail (#861)
* fix: ci
* git checko
* git checko
* Update .github/workflows/golangci-lint.yml
Co-authored-by: Copilot <[email protected]>
---------
Co-authored-by: Copilot <[email protected]>
---
.github/workflows/golangci-lint.yml | 12 ++++++++----
book-flight-ai-agent/go-server/conf/config.go | 4 ++--
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/golangci-lint.yml
b/.github/workflows/golangci-lint.yml
index e2333192..3674104c 100644
--- a/.github/workflows/golangci-lint.yml
+++ b/.github/workflows/golangci-lint.yml
@@ -20,14 +20,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- golang:
+ go-version:
- '1.23'
steps:
- - uses: actions/setup-go@v3
+ - uses: actions/setup-go@v5
with:
- go-version: ${{ matrix.go_version }}
+ go-version: ${{ matrix.go-version }}
+ cache: true
+ cache-dependency-path: |
+ **/go.mod
+ **/go.sum
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Switch Dubbo-go version
run: |
diff --git a/book-flight-ai-agent/go-server/conf/config.go
b/book-flight-ai-agent/go-server/conf/config.go
index e98381bb..e2c8966c 100644
--- a/book-flight-ai-agent/go-server/conf/config.go
+++ b/book-flight-ai-agent/go-server/conf/config.go
@@ -37,7 +37,7 @@ var (
onceEnv sync.Once
)
-// Config structure matches the environment file structure
+// Environment Config structure matches the environment file structure
type Environment struct {
Model string `env:"LLM_MODEL"`
Url string `env:"LLM_URL"`
@@ -81,7 +81,7 @@ func AtoiWithDefault(key string, defaultValue int) int {
return defaultValue
}
-// Config structure matches the YAML file structure
+// CfgPrompts Config structure matches the YAML file structure
type CfgPrompts struct {
ReactPrompt string `yaml:"reactPrompt"`
FinalPrompt string `yaml:"finalPrompt"`