This commit is contained in:
eyedeekay
2025-04-21 15:59:10 -04:00
parent e6d170f16f
commit 3c0c74cfb1
2 changed files with 20 additions and 8 deletions

View File

@ -3,11 +3,24 @@ fmt:
@echo "Running gofumpt..."
find . -name '*.go' -exec gofumpt -w -s -extra {} \;
migrate:
go build -o migrate ./cmd/migrate
CGO_ENABLED=0
unmigrate:
go build -o unmigrate ./cmd/unmigrate
all: bin migrate unmigrate forkfix orgfix
forkfix:
go build -o forkfix ./cmd/forkfix
bin:
mkdir -p ./bin
migrate: bin
go build --tags=netgo,osusergo -o ./bin/migrate ./cmd/migrate
unmigrate: bin
go build --tags=netgo,osusergo -o ./bin/unmigrate ./cmd/unmigrate
forkfix: bin
go build --tags=netgo,osusergo -o ./bin/forkfix ./cmd/forkfix
orgfix: bin
go build --tags=netgo,osusergo -o ./bin/orgfix ./cmd/orgfix
clean:
rm -f ./bin/migrate ./bin/unmigrate ./bin/forkfix ./bin/orgfix

View File

@ -29,8 +29,7 @@ func ExtractUserMentions(text string) []string {
}
// Ignore everything we found and return nothing
return []string{}
//return result
return []string{""}
}
// NormalizeMentions replaces all @mentions in text with their normalized versions