go101/golds

Option to avoid outputting to a subdirectory

alecthomas opened this issue · 5 comments

Or preferably, just don't output to a subdirectory at all - the user already controls the flag, so they can specify whatever directory they prefer.

When I use -dir=docs I expect that the docs will actually be in that directory, not a subdirectory. This is unintuitive as-is, but also causes actual problems when trying to deploy docs through CI because the general expectation is that the CI pipeline can point to a static directory and just push it up to the documentation site. As the sub-directory changes on each invocation, this expectation is broken.

Good advice, though there is a small incompatibility problem caused by this behavior change, I think the change is worthy to make.

The behavior will not change if the -dir option is not presented.

This should be fixed in tip.

Brilliant thanks, I'll give it a shot this week.

This works perfectly, thanks!

OK. I will close this issue.