Skip to content

feat(cli): forward install source on signup and share - #147

Merged
scott merged 1 commit into
mainfrom
feat/169-install-source
Oct 6, 2026
Merged

scott merged 1 commit into
mainfrom
feat/169-install-source

Conversation

@scott

@scott scott commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • gander signup and hosted gander share / gander watch send install_source when --source or GANDER_SOURCE is set. The flag wins. Neither set means the JSON key is omitted, so an older server still accepts the request.
  • Directory watches persist the source and hand it to the runner, which uses it on the first POST /api/shares. Later content pushes stay on PUT and do not send the field. Local preview does not send it.

Related

Server change: https://github.com/gandermd/gandermd/pull/171
Issue: https://github.com/gandermd/gandermd/issues/169

This PR does not auto-close that issue. Ship the server before a CLI release that sends the field.

Testing

  • go test ./...
  • go vet ./...
  • go build ./...

Send install_source only when --source or GANDER_SOURCE is set,
so older servers keep accepting the request. Directory watches
persist the source for the runner's first POST.

Refs gandermd#169
@scott
scott merged commit bc73b78 into main Oct 6, 2026
1 check passed
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.

1 participant