-
Notifications
You must be signed in to change notification settings - Fork 79
feat(build): include manual file in packages MONGOSH-1017 #1144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I extract the .deb
locally, it seems that ./usr/share/man/man1/mongosh.1.gz
is a tar archive, not a gzipped file? I think some of the wiring is still not quite right here:
$ dpkg -x mongodb-mongosh_0.0.0-dev.0_amd64.deb .
$ file ./usr/share/man/man1/mongosh.1.gz
./usr/share/man/man1/mongosh.1.gz: POSIX tar archive
tar.x({ cwd: destination }) | ||
); | ||
await promisify(pipeline)( | ||
createReadStream(join(destination, 'mongosh.1')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
createReadStream(join(destination, 'mongosh.1')), | |
createReadStream(join(destination, path.basename(name, '.gz'))), |
This implements the (optional) review comment in #1144 (comment), it’s nice to avoid hardcoding things that are also available through the build config file.
* chore(build): avoid hardcoding manpage name This implements the (optional) review comment in #1144 (comment), it’s nice to avoid hardcoding things that are also available through the build config file. * fixup: refactor rpm manpage inclusion code * chore: add man page checks to test rpm/deb docker setups
Implement manual pages for the packages.
Adds mongosh manpages to all the packages except for
win32msi
.For

.deb