Improve dependency setup feedback and fix Arabic locale YAML
- Makefile: show go mod download progress (-x) and clearer install messaging. - README-en.md, README.md: update source-build Go requirement to 1.25+. - internal/i18n/locales/ar-SY.yml: quote %s-prefixed validation strings to fix YAML parsing on startup. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> >> FileTree Changes : modified: Makefile modified: README-en.md modified: README.md modified: internal/i18n/locales/ar-SY.yml
هذا الالتزام موجود في:
9
Makefile
9
Makefile
@@ -5,6 +5,7 @@ BINARY_NAME := opengist
|
||||
GIT_TAG := $(shell git describe --tags)
|
||||
VERSION_PKG := github.com/thomiceli/opengist/internal/config.OpengistVersion
|
||||
TEST_DB_TYPE ?= sqlite
|
||||
GO_MOD_DOWNLOAD_FLAGS ?= -x
|
||||
|
||||
all: clean install build
|
||||
|
||||
@@ -13,8 +14,8 @@ all_crosscompile: clean install build_frontend build_crosscompile
|
||||
install:
|
||||
@echo "Installing NPM dependencies..."
|
||||
@npm ci || (echo "Error: Failed to install NPM dependencies." && exit 1)
|
||||
@echo "Installing Go dependencies..."
|
||||
@go mod download || (echo "Error: Failed to install Go dependencies." && exit 1)
|
||||
@echo "Installing Go dependencies (first run can take a while)..."
|
||||
@go mod download $(GO_MOD_DOWNLOAD_FLAGS) || (echo "Error: Failed to install Go dependencies." && exit 1)
|
||||
|
||||
build_frontend:
|
||||
@echo "Building frontend assets..."
|
||||
@@ -65,7 +66,7 @@ check_changes:
|
||||
@git --no-pager diff --exit-code || (echo "There are unstaged changes detected." && exit 1)
|
||||
|
||||
go_mod:
|
||||
@go mod download
|
||||
@go mod download $(GO_MOD_DOWNLOAD_FLAGS)
|
||||
@go mod tidy
|
||||
|
||||
fmt:
|
||||
@@ -75,4 +76,4 @@ test:
|
||||
@OPENGIST_TEST_DB=$(TEST_DB_TYPE) go test ./... -p 1
|
||||
|
||||
check-tr:
|
||||
@bash ./scripts/check-translations.sh
|
||||
@bash ./scripts/check-translations.sh
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم