65 lines
2.2 KiB
Diff
65 lines
2.2 KiB
Diff
--- Makefile.orig 2024-11-21 07:04:33
|
|
+++ Makefile 2025-01-14 17:39:55
|
|
@@ -28,7 +28,7 @@
|
|
# BUILTIN_LD_FLAGS are the internal flags used to pass to the linker. By default
|
|
# the config.GitCommit variable is always set via this variable, and
|
|
# DWARF-stripping is enabled unless DWARF=YesPlease.
|
|
-BUILTIN_LD_FLAGS =
|
|
+BUILTIN_LD_FLAGS = "-linkmode=external"
|
|
ifneq ("$(VENDOR)","")
|
|
BUILTIN_LD_FLAGS += -X 'github.com/git-lfs/git-lfs/v3/config.Vendor=$(VENDOR)'
|
|
endif
|
|
@@ -202,8 +202,8 @@
|
|
#
|
|
# It uses BUILD_MAIN as defined above to specify the entrypoint for building Git
|
|
# LFS.
|
|
-BUILD = GOOS=$(1) GOARCH=$(2) \
|
|
- $(GO) build \
|
|
+BUILD = GO111MODULE=on GOOS=$(1) GOARCH=$(2) \
|
|
+ $(GO) build -mod=vendor \
|
|
-ldflags="$(LD_FLAGS)" \
|
|
-gcflags="$(GC_FLAGS)" \
|
|
-trimpath \
|
|
@@ -237,7 +237,7 @@
|
|
# 'commands' of Git LFS. It depends upon the contents of the 'docs' directory
|
|
# and converts those manpages into code.
|
|
commands/mancontent_gen.go : $(wildcard docs/man/*.adoc)
|
|
- GOOS= GOARCH= $(GO) generate github.com/git-lfs/git-lfs/v3/commands
|
|
+ @echo "delete this step"
|
|
|
|
# trgen is a shorthand for ensuring that tr/tr_gen.go is kept up-to-date with
|
|
# the contents of po/build/*.mo.
|
|
@@ -248,7 +248,7 @@
|
|
# 'tr' of Git LFS. It depends upon the contents of the 'po' directory
|
|
# and converts the .mo files.
|
|
tr/tr_gen.go : $(MO)
|
|
- GOOS= GOARCH= $(GO) generate github.com/git-lfs/git-lfs/v3/tr
|
|
+ @echo "delete this step"
|
|
|
|
po/build:
|
|
mkdir -p po/build
|
|
@@ -628,7 +628,7 @@
|
|
.PHONY : fmt
|
|
ifeq ($(shell test -x "`command -v $(GOIMPORTS)`"; echo $$?),0)
|
|
fmt : $(SOURCES) | lint
|
|
- @$(GOIMPORTS) $(GOIMPORTS_EXTRA_OPTS) $?;
|
|
+ @echo "delete this step"
|
|
else
|
|
fmt : $(SOURCES) | lint
|
|
@echo "git-lfs: skipping fmt, no goimports found at \`$(GOIMPORTS)\` ..."
|
|
@@ -638,13 +638,7 @@
|
|
# are vendored in via vendor (see: above).
|
|
.PHONY : lint
|
|
lint : $(SOURCES)
|
|
- @! $(GO) list -f '{{ join .Deps "\n" }}' . \
|
|
- | $(XARGS) $(GO) list -f \
|
|
- '{{ if and (not .Standard) (not .Module) }} \
|
|
- {{ .ImportPath }} \
|
|
- {{ end }}' \
|
|
- | $(GREP) -v "github.com/git-lfs/git-lfs" \
|
|
- | $(GREP) "."
|
|
+ @echo "delete this step"
|
|
|
|
# MAN_ROFF_TARGETS is a list of all ROFF-style targets in the man pages.
|
|
MAN_ROFF_TARGETS = man/man1/git-lfs-checkout.1 \
|