mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #373] [MERGED] Move COMMIT into a variable so it could be overridden if desired #1286
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1286
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/373
Author: @cyqsimon
Created: 8/1/2022
Status: ✅ Merged
Merged: 8/3/2022
Merged by: @binwiederhier
Base:
main← Head:commit-var📝 Commits (1)
a498e43MoveCOMMITinto a variable so it could be overridden if desired📊 Changes
1 file changed (+4 additions, -3 deletions)
View changed files
📝
Makefile(+4 -3)📄 Description
This is so that when the source directory is not a git directory (as is the case with building from a tarball), it becomes possible to manually set the commit hash during build like so:
Currently, as there is no way to override the commit manually, it's not possible to build a working binary from a tarball using
make.If you try anyway (trying is the first step to failure), since
git rev-parse --short HEADwill fail silently, the binary will be built withcommit = "", which results in a runtime panic:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.