-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix: Manpages Script breaks Dockerfiles #8558
Fix: Manpages Script breaks Dockerfiles #8558
Conversation
Important Auto Review SkippedAuto reviews are limited to the following labels: llm-review. Please add one of these labels to enable auto reviews. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
tACK @ aec4c06f479b035d5465c0e29e877d02b46ccafa, thanks for the quick fix 🏅
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.
Thanks for the fix! Two small requests.
scripts/gen_man_pages.sh
Outdated
} | ||
|
||
# Check if lncli is installed. | ||
check_lncli_installed() { |
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.
Should use function check_lncli_installed()
.
scripts/gen_man_pages.sh
Outdated
|
||
# Check if lncli is installed. | ||
check_lncli_installed() { | ||
if ! command -v lncli &> /dev/null |
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.
We should always use the if [[ ... ]]
syntax.
scripts/gen_man_pages.sh
Outdated
echo "Installing man pages to $DESTDIR$PREFIX/share/man/man1." | ||
install -m 644 lnd.1 "$DESTDIR$PREFIX/share/man/man1/lnd.1" | ||
install -m 644 lncli.1 "$DESTDIR$PREFIX/share/man/man1/lncli.1" | ||
create_directory_if_not_exist "$FULLPATH/share/man/man1" |
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.
I think we can directly do mkdir -p "$FULLPATH/share/man/man1"
here, as it doesn't fail if the directory already exists.
aec4c06
to
1812b0e
Compare
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.
tACK, LGTM 🎉
Change Description
Currently dev.Dockerfile fails while running the
scripts/gen_man_pages.sh
script for two main reasons:golang:1.21.0-alpine
doesn't havebash
installed by default so we need to manually install it.man/man1
directory in/usr/local/share
directory so we need to create it if it doesn't exist.Fixes #8557
Steps to Test
Tested it locally
Pull Request Checklist
Testing
Code Style and Documentation
[skip ci]
in the commit message for small changes.📝 Please see our Contribution Guidelines for further guidance.