-
Notifications
You must be signed in to change notification settings - Fork 102
multi: add support for building without UI #500
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
terminal.go
Outdated
// +--------------------------+ | - faraday | | ||
// | - loop | | ||
// | - pool | | ||
// +---------------------+ |
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.
mh weird formatting change, I'm running go1.20.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.
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 |
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 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
?
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.
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.
Could you please rebase and make it ready for review @sputn1ck ? |
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.
LGTM 💯
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.
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.
Yes please, could you add to 0-19-staging? |
Done: 4f1dde8 |
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@d69e557NOTE: this doesn't remove the need for an
uipassword