fix: improve Makefile and duckdb.go for better environment handling
- Updated the Makefile to export the EDITION variable for the lite build process, ensuring proper environment setup. - Added a defer statement in duckdb.go to ensure the SQL database connection is closed after use, improving resource management. These changes enhance the build process and resource handling in the application.
This commit is contained in:
@@ -248,8 +248,9 @@ build-lite:
|
||||
else \
|
||||
echo ">> No frontend/package.json, skipping frontend"; \
|
||||
fi
|
||||
EDITION=lite eval "$$(./scripts/get_version.sh env)"; \
|
||||
LDFLAGS="$$(EDITION=lite ./scripts/get_version.sh ldflags)"; \
|
||||
export EDITION=lite; \
|
||||
eval "$$(./scripts/get_version.sh env)"; \
|
||||
LDFLAGS="$$(./scripts/get_version.sh ldflags)"; \
|
||||
CGO_ENABLED=1 \
|
||||
CGO_CFLAGS="-Wno-deprecated-declarations" \
|
||||
CGO_LDFLAGS="-Wl,-no_warn_duplicate_libraries" \
|
||||
|
||||
Reference in New Issue
Block a user