Skip to content

makefile: fix lib/transform docs not getting updated - #8786

Merged
ncw merged 1 commit into
rclone:masterfrom
nielash:fix-transform-help
Sep 1, 2025
Merged

ncw merged 1 commit into
rclone:masterfrom
nielash:fix-transform-help

Conversation

@nielash

@nielash nielash commented Aug 30, 2025

Copy link
Copy Markdown
Contributor

What is the purpose of this change?

As of 4280ec7 the lib/transform docs are generated with //go:generate and embedded with //go:embed.

Before this change, however, they were not getting automatically updated with subsequent changes (like fe62a2b) because go generate ./lib/transform was not being run as part of the release making process.

This change fixes that by running it in make commanddocs.

Note: I considered doing go generate ./... instead, but that actually changed some code in backend/s3/setfrom.go, as opposed to just docs.

Was the change discussed in an issue or in the forum before?

No.

Checklist

  • I have read the contribution guidelines.
  • I have added tests for all changes in this PR if appropriate.
  • I have added documentation for the changes if appropriate.
  • All commit messages are in house style.
  • I'm done, this Pull Request is ready for review :-)

As of
rclone@4280ec7
the lib/transform docs are generated with //go:generate and embedded with
//go:embed.

Before this change, however, they were not getting automatically updated with
subsequent changes (like
rclone@fe62a2b)
because `go generate ./lib/transform` was not being run as part of the release
making process.

This change fixes that by running it in `make commanddocs`.

@ncw ncw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice one - thank you :-)

@ncw
ncw merged commit b8a379c into rclone:master Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants