Skip to content

Conversation

sputn1ck
Copy link
Member

@sputn1ck sputn1ck commented Feb 22, 2023

This commit adds support for building without UI. If the build tag "no_ui" is set the UI will be disabled and an empty embed.FS will be served. I'm successfully running it on my nix-bitcoin node with the following nix-bitcoin pkgs/modules sputn1ck/nix-bitcoin@d69e557

NOTE: this doesn't remove the need for an uipassword

// +--------------------------+ | - faraday |
// | - loop |
// | - pool |
// +---------------------+
Copy link
Member Author

Choose a reason for hiding this comment

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

mh weird formatting change, I'm running go1.20.1

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, that's the new comment formatter that was added with 1.18 or 1.19, so kind of expected.

app.go Outdated
@@ -0,0 +1,19 @@
//go:build !no_ui
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if instead of adding this build tag, more or less the same couldn't be achieved by just adding a mkdir -p app/build && touch app/build/index.html command to the go-build-noui?

Copy link
Member

Choose a reason for hiding this comment

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

Going with the tag has the advantage of being able to build litd purely with go build whereas the approach you suggested needs additional shell commands.

@bhandras
Copy link
Member

Could you please rebase and make it ready for review @sputn1ck ?

@sputn1ck sputn1ck requested review from bhandras and guggero August 14, 2024 11:05
@sputn1ck sputn1ck marked this pull request as ready for review August 14, 2024 11:05
Copy link
Member

@bhandras bhandras left a comment

Choose a reason for hiding this comment

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

LGTM 💯

Copy link
Contributor

@guggero guggero left a comment

Choose a reason for hiding this comment

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

Nice, thanks! Can you add a one-liner to the cmd/release-notes/release-notes-0.13.4.md please?

Also, do you need this on the 0-19-staging branch as well? Can cherry-pick it if yes.

This commit adds support for building without UI.
If the build tag "litd no_ui" is set the UI will
be disabled.
@bhandras
Copy link
Member

Nice, thanks! Can you add a one-liner to the cmd/release-notes/release-notes-0.13.4.md please?

Also, do you need this on the 0-19-staging branch as well? Can cherry-pick it if yes.

Yes please, could you add to 0-19-staging?

@guggero guggero merged commit 2588b83 into lightninglabs:master Aug 14, 2024
13 checks passed
@guggero
Copy link
Contributor

guggero commented Aug 14, 2024

Yes please, could you add to 0-19-staging?

Done: 4f1dde8

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.

3 participants