Skip to content

Fix: ld: warning & Make make build as default target & Print effective config in startup & Add AGENTS.md#1

Merged
RussellLuo merged 3 commits intoOpenCSGs:mainfrom
xxx7xxxx:dev
Apr 9, 2026
Merged

Fix: ld: warning & Make make build as default target & Print effective config in startup & Add AGENTS.md#1
RussellLuo merged 3 commits intoOpenCSGs:mainfrom
xxx7xxxx:dev

Conversation

@xxx7xxxx
Copy link
Copy Markdown
Collaborator

@xxx7xxxx xxx7xxxx commented Apr 9, 2026

No description provided.

#cgo darwin LDFLAGS: ${SRCDIR}/../../target/debug/libboxlite.a
#cgo darwin LDFLAGS: -framework CoreFoundation -framework Security -framework IOKit
#cgo darwin LDFLAGS: -framework Hypervisor -framework vmnet -lresolv
#cgo darwin LDFLAGS: -framework Hypervisor -framework vmnet
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any issues with this option?

Copy link
Copy Markdown
Collaborator Author

@xxx7xxxx xxx7xxxx Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No bugs, but it's deprecated and useless on Mac, My local go1.26.1 outputed warning. (BTW we should update the go version to the latest one go1.26)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update the go version to the latest one go1.2

LGTM, go ahead.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment thread cli/serve.go
cfg.Server.APIBaseURL = strings.TrimRight(globals.Endpoint, "/")
}

a.printEffectiveConfig(cfg)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All settings will be written in ~/.csgclaw/config.toml (after csgclaw onboard).

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There could be multiple sources such as envs, flags, config file and so on. So I added the display to show the final effective config.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Then should we mask the api_key with asterisks?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@RussellLuo RussellLuo merged commit 2502d84 into OpenCSGs:main Apr 9, 2026
RussellLuo pushed a commit that referenced this pull request Apr 9, 2026
- print effective config on startup (with partially masked secrets)
- initialize AGENTS.md
- fix ld warning
- make `make build` the default target
- update Go version
RussellLuo pushed a commit that referenced this pull request Apr 9, 2026
- print effective config on startup (with partially masked secrets)
- initialize AGENTS.md
- fix ld warning
- make `make build` the default target
- update Go version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants