diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.md new file mode 100644 index 0000000..08fa327 --- /dev/null +++ b/.claude/CLAUDE.md @@ -0,0 +1,128 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Project Overview + +`check-self` is a Go CLI diagnostic tool in the Senzing Garage (experimental) project suite. It verifies the environment where Senzing tools run, performing comprehensive checks on configurations, databases, licenses, and system state. + +**Status**: Work-in-progress with semantic versions `0.n.x` - not production-ready. + +## Build Commands + +```bash +make build # Build for current OS/architecture +make build-all # Build for all 6 platforms (darwin/linux/windows × amd64/arm64) +make clean # Remove build artifacts and caches +``` + +Binaries output to `target/-/check-self`. + +## Test Commands + +```bash +make clean setup test # Run tests (setup creates test database) +make check-coverage # Run tests and verify coverage thresholds +make coverage # Generate coverage report and open in browser + +# Run a single test +go test -v -run TestFunctionName ./checkself/ + +# Run tests with trace logging +SENZING_LOG_LEVEL=TRACE go test ./... +``` + +Coverage targets: 80%+ overall, minimum 30% per file, 70% for `cmd/` package. + +## Lint Commands + +```bash +make lint # Run all linters (golangci-lint, govulncheck, cspell) +make fix # Auto-fix ~20 linter issues (gofumpt, wsl, nakedret, etc.) +make golangci-lint # Run golangci-lint only +make govulncheck # Vulnerability scanning +make cspell # Spell check (includes dotfiles) +``` + +Linter config: `.github/linters/.golangci.yaml` - enables 100+ linters with strict settings. + +## Development Setup + +```bash +make dependencies-for-development # Install dev tools (golangci-lint, gotestfmt, govulncheck, gofumpt, cspell) +make dependencies # Update and tidy Go dependencies +``` + +**Prerequisites**: Senzing C library installed at `/opt/senzing/er/lib` with SDK headers at `/opt/senzing/er/sdk/c`. + +## Architecture + +### Package Structure + +- `main.go` - Entry point, calls `cmd.Execute()` +- `cmd/` - Cobra CLI setup with Viper configuration management + - `root.go` - Root command definition, context variables, PreRun hooks + - `context_.go` - Platform-specific context handling +- `checkself/` - Core health-check logic + - `checkself.go` - `BasicCheckSelf` struct and `CheckSelf()` orchestrator + - `check*.go` - Individual health check implementations + +### Core Pattern: Chain of Responsibility + +The `CheckSelf()` method in `checkself/checkself.go` orchestrates checks: + +1. `getTestFunctions()` returns ordered list of check functions +2. Each check follows signature: `(ctx, reportChecks, reportInfo, reportErrors) → (reportChecks, reportInfo, reportErrors, error)` +3. Checks execute sequentially; first error stops the chain +4. Reports accumulate: Information → Checks Performed → Errors → Result + +### Check Functions (in execution order) + +1. `Prolog` - Output header/separator +2. `ListEnvironmentVariables` - Introspect environment +3. `ListStructVariables` - Dump configuration values +4. `CheckConfigPath` - Validate config directory +5. `CheckResourcePath` - Validate resource directory +6. `CheckSupportPath` - Validate support directory +7. `CheckDatabaseURL` - Validate database connection string +8. `CheckSettings` - Parse and validate Senzing settings JSON +9. `CheckDatabaseSchema` - Verify database schema integrity +10. `CheckSenzingConfiguration` - Validate Senzing config (disabled) +11. `CheckLicense` - Validate license (disabled) + +### Key Types + +```go +// Main configuration struct - populated via Viper from env/flags/files +type BasicCheckSelf struct { + ConfigPath, DatabaseURL, ResourcePath, SupportPath, Settings string + // ... plus other config fields +} + +// Factory pattern for Senzing SDK access +szfactorycreator.CreateCoreAbstractFactory() → senzing.SzAbstractFactory +szAbstractFactory.CreateConfigManager() → senzing.SzConfigManager +szAbstractFactory.CreateProduct() → senzing.SzProduct +``` + +### Database Support + +Supports: SQLite3, MySQL, PostgreSQL, Oracle (godror), MSSQL, DB2. Database URL can come from `DatabaseURL` field or extracted from `Settings` JSON. + +## Docker + +```bash +make docker-build # Build Docker image +make docker-run # Run container +make docker-test # Integration tests via docker-compose +make docker-build-package # Create RPM/DEB packages +``` + +## Code Style Notes + +- Line length limit: 120 characters +- Uses `gofumpt` for formatting (stricter than `gofmt`) +- WSL linter enforces whitespace conventions +- `exhaustruct` excludes `cobra.Command`, `BasicCheckSelf`, `ProductLicenseResponse` +- Function max complexity: 14 (cyclop), max lines: 65 (funlen) +- Use `wraperror.Errorf()` for error wrapping diff --git a/.claude/commands/senzing.md b/.claude/commands/senzing.md new file mode 100644 index 0000000..d07dc3d --- /dev/null +++ b/.claude/commands/senzing.md @@ -0,0 +1,3 @@ +# Senzing + +- Perform the steps specified by diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..bcf43f6 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,3 @@ +{ + "includeCoAuthoredBy": false +} diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a95f6be..5ab0bf0 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,10 +4,14 @@ version: 2 updates: - package-ecosystem: github-actions + cooldown: + default-days: 21 directory: / schedule: interval: daily - package-ecosystem: gomod + cooldown: + default-days: 21 directory: / schedule: interval: daily diff --git a/.github/linters/.jscpd.json b/.github/linters/.jscpd.json index 9e26dfe..0967ef4 100644 --- a/.github/linters/.jscpd.json +++ b/.github/linters/.jscpd.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/.github/linters/README.md b/.github/linters/README.md index 64aa601..fed95ee 100644 --- a/.github/linters/README.md +++ b/.github/linters/README.md @@ -24,14 +24,12 @@ - [jscpd configuration] - Example: - ```json - { - "ignore": [ - "**/*.go,**/go-test*.yaml" - ], + ```json + { + "ignore": ["**/*.go,**/go-test*.yaml"], "threshold": 10 - } - ``` + } + ``` ## .yaml-lint.yml @@ -40,10 +38,23 @@ - [yaml-lint] - [yaml-lint configuration] -[.checkov.yaml]: .checkov.yaml +## bearer.yml + +- [bearer.yml] +- Used by [bearer.yaml] +- [bearer] + - [bearer repository] + - [bearer configuration] + +[.checkov.yaml]: .checkov.yaml [.golangci.yaml]: .golangci.yaml [.jscpd.json]: .jscpd.json [.yaml-lint.yml]: .yaml-lint.yml +[bearer configuration]: https://docs.bearer.com/reference/config/ +[bearer repository]: https://github.com/Bearer/bearer/tree/main +[bearer.yaml]: ../workflows/README.md#beareryaml +[bearer.yml]: bearer.yml +[bearer]: https://docs.bearer.com/ [checkov configuration]: https://www.checkov.io/2.Basics/CLI%20Command%20Reference.html [checkov]: https://www.checkov.io/ [golangci linters]: https://golangci-lint.run/usage/linters/ diff --git a/.github/renovate.json b/.github/renovate.json index a984404..c205f53 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,5 +1,17 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ + "config:recommended", + ":disableDependencyDashboard", + "docker:pinDigests" + ], "enabledManagers": ["dockerfile", "docker-compose"], - "extends": ["config:recommended", ":disableDependencyDashboard", "docker:pinDigests"] + "schedule": ["on sunday"], + "prCreation": "not-pending", + "packageRules": [ + { + "matchUpdateTypes": ["major", "minor", "patch"], + "minimumReleaseAge": "21 days" + } + ] } diff --git a/.github/workflows/bearer.yaml b/.github/workflows/bearer.yaml index 31ae923..1822817 100644 --- a/.github/workflows/bearer.yaml +++ b/.github/workflows/bearer.yaml @@ -1,11 +1,13 @@ -name: bearer +name: Bearer on: - push: - branches-ignore: [main] pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + permissions: {} jobs: @@ -13,6 +15,7 @@ jobs: permissions: contents: read runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Checkout repository diff --git a/.github/workflows/claude-pr-review.yaml b/.github/workflows/claude-pr-review.yaml index 46d00b7..dbd2bb1 100644 --- a/.github/workflows/claude-pr-review.yaml +++ b/.github/workflows/claude-pr-review.yaml @@ -1,13 +1,13 @@ name: Claude PR Review -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} - cancel-in-progress: true - on: pull_request: types: [opened, synchronize] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + permissions: {} jobs: diff --git a/.github/workflows/dependabot-approve-and-merge.yaml b/.github/workflows/dependabot-approve-and-merge.yaml index 73be7ce..a42b5a5 100644 --- a/.github/workflows/dependabot-approve-and-merge.yaml +++ b/.github/workflows/dependabot-approve-and-merge.yaml @@ -4,6 +4,10 @@ on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + permissions: {} jobs: diff --git a/.github/workflows/docker-build-container.yaml b/.github/workflows/docker-build-container.yaml index bf323e5..b3ad5e6 100644 --- a/.github/workflows/docker-build-container.yaml +++ b/.github/workflows/docker-build-container.yaml @@ -2,10 +2,13 @@ name: Docker build container on: pull_request: - branches: - - main + branches: [main] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + permissions: {} jobs: @@ -13,6 +16,7 @@ jobs: permissions: contents: read runs-on: ubuntu-latest + timeout-minutes: 30 steps: - name: Get repository name diff --git a/.github/workflows/docker-verify-refreshed-at-updated.yaml b/.github/workflows/docker-verify-refreshed-at-updated.yaml new file mode 100644 index 0000000..3e0b39c --- /dev/null +++ b/.github/workflows/docker-verify-refreshed-at-updated.yaml @@ -0,0 +1,21 @@ +name: Docker verify REFRESHED_AT Updated + +# Required status check: Verify Dockerfiles REFRESHED_AT Updated / Dockerfile Check Status +# The other status checks beginning with "Verify Dockerfiles REFRESHED_AT Updated / ..." are not required. + +on: + pull_request: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + +permissions: {} + +jobs: + verify-dockerfiles: + name: Verify Dockerfiles REFRESHED_AT Updated + permissions: + contents: read + uses: senzing-factory/build-resources/.github/workflows/verify-dockerfile-refreshed-at-updated.yaml@v3 diff --git a/.github/workflows/go-proxy-pull.yaml b/.github/workflows/go-proxy-pull.yaml index d0aba89..ea6a586 100644 --- a/.github/workflows/go-proxy-pull.yaml +++ b/.github/workflows/go-proxy-pull.yaml @@ -14,6 +14,7 @@ jobs: permissions: contents: write runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Pull new module version diff --git a/.github/workflows/go-test-darwin.yaml b/.github/workflows/go-test-darwin.yaml index 86b271c..8e4e725 100644 --- a/.github/workflows/go-test-darwin.yaml +++ b/.github/workflows/go-test-darwin.yaml @@ -2,6 +2,10 @@ name: Go test darwin on: [pull_request, workflow_dispatch] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + env: SENZING_LOG_LEVEL: TRACE SENZING_TOOLS_DATABASE_URL: sqlite3://na:na@nowhere/tmp/sqlite/G2C.db @@ -20,6 +24,7 @@ jobs: go: ["1.24"] os: [macos-latest] senzingsdk-version: [production-v4, staging-v4] + timeout-minutes: 30 steps: - name: Checkout repository @@ -63,13 +68,13 @@ jobs: go test -exec "${GITHUB_WORKSPACE}/bin/macos_exec_dyld.sh" -json -v -p 1 -coverprofile="./cover-${{ matrix.senzingsdk-version }}.out" -covermode=atomic -coverpkg=./... ./... 2>&1 | tee "/tmp/gotest-${{ matrix.senzingsdk-version }}.log" | gotestfmt - name: Store coverage file - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v6 with: name: "cover-${{ matrix.senzingsdk-version }}.out" path: "./cover-${{ matrix.senzingsdk-version }}.out" - name: Upload test log - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v6 if: always() with: name: "test-log-${{ matrix.senzingsdk-version }}" diff --git a/.github/workflows/go-test-linux.yaml b/.github/workflows/go-test-linux.yaml index 6759820..290d1f2 100644 --- a/.github/workflows/go-test-linux.yaml +++ b/.github/workflows/go-test-linux.yaml @@ -2,11 +2,16 @@ name: Go test linux on: push: + branches: [main] pull_request: branches: [main] schedule: - cron: "15 7 * * *" +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + env: SENZING_LOG_LEVEL: TRACE SENZING_TOOLS_DATABASE_URL: sqlite3://na:na@nowhere/tmp/sqlite/G2C.db @@ -27,6 +32,7 @@ jobs: go: ["1.24"] os: [ubuntu-latest] senzingsdk-version: [production-v4, staging-v4] + timeout-minutes: 30 steps: - name: Checkout repository @@ -67,13 +73,13 @@ jobs: go test -json -v -p 1 -coverprofile="./cover-${{ matrix.senzingsdk-version }}.out" -covermode=atomic -coverpkg=./... ./... 2>&1 | tee "/tmp/gotest-${{ matrix.senzingsdk-version }}.log" | gotestfmt - name: Store coverage file - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v6 with: name: "cover-${{ matrix.senzingsdk-version }}.out" path: "./cover-${{ matrix.senzingsdk-version }}.out" - name: Upload test log - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v6 if: always() with: name: "test-log-${{ matrix.senzingsdk-version }}" diff --git a/.github/workflows/go-test-windows.yaml b/.github/workflows/go-test-windows.yaml index b92eca5..69e5686 100644 --- a/.github/workflows/go-test-windows.yaml +++ b/.github/workflows/go-test-windows.yaml @@ -2,6 +2,10 @@ name: Go test windows on: [pull_request, workflow_dispatch] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + env: SENZING_LOG_LEVEL: TRACE SENZING_TOOLS_DATABASE_URL: "sqlite3://na:na@nowhere/C:\\Temp\\sqlite\\G2C.db" @@ -19,6 +23,7 @@ jobs: matrix: go: ["1.24"] senzingsdk-version: [production-v4, staging-v4] + timeout-minutes: 30 steps: - name: Checkout repository @@ -59,13 +64,13 @@ jobs: cp cover "cover-${{ matrix.senzingsdk-version }}.out" - name: Store coverage file - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v6 with: name: "cover-${{ matrix.senzingsdk-version }}.out" path: "cover-${{ matrix.senzingsdk-version }}.out" - name: Upload test log - uses: actions/upload-artifact@v5 + uses: actions/upload-artifact@v6 if: always() with: name: "test-log-${{ matrix.senzingsdk-version }}" diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 26ac1a6..4341923 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -1,16 +1,18 @@ name: Golangci lint on: - push: - branches-ignore: [main] pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + permissions: {} jobs: golangci: - name: lint + name: Lint permissions: # Required: allow read access to the content for analysis. contents: read @@ -22,6 +24,7 @@ jobs: matrix: go: ["1.24"] senzingsdk-version: [production-v4, staging-v4] + timeout-minutes: 10 steps: - name: Checkout repository diff --git a/.github/workflows/govulncheck.yaml b/.github/workflows/govulncheck.yaml index a3db25b..25ee7be 100644 --- a/.github/workflows/govulncheck.yaml +++ b/.github/workflows/govulncheck.yaml @@ -1,11 +1,13 @@ -name: govulncheck +name: Govulncheck on: - push: - branches-ignore: [main] pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + permissions: {} jobs: @@ -18,6 +20,7 @@ jobs: matrix: go: ["1.24"] senzingsdk-version: [production-v4, staging-v4] + timeout-minutes: 10 steps: - name: Checkout repository diff --git a/.github/workflows/lint-workflows.yaml b/.github/workflows/lint-workflows.yaml index aa62139..ebd07bc 100644 --- a/.github/workflows/lint-workflows.yaml +++ b/.github/workflows/lint-workflows.yaml @@ -1,11 +1,13 @@ name: Lint workflows on: - push: - branches-ignore: [main] pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + permissions: {} jobs: diff --git a/.github/workflows/make-go-tag.yaml b/.github/workflows/make-go-tag.yaml index 3d54861..8647bfd 100644 --- a/.github/workflows/make-go-tag.yaml +++ b/.github/workflows/make-go-tag.yaml @@ -15,6 +15,7 @@ jobs: permissions: contents: write runs-on: ubuntu-latest + timeout-minutes: 10 steps: - name: Checkout repository diff --git a/.github/workflows/spellcheck.yaml b/.github/workflows/spellcheck.yaml index a89ac8f..49f496a 100644 --- a/.github/workflows/spellcheck.yaml +++ b/.github/workflows/spellcheck.yaml @@ -1,9 +1,13 @@ -name: spellcheck +name: Spellcheck on: pull_request: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + permissions: {} jobs: diff --git a/.gitignore b/.gitignore index 73e3397..9d657c7 100644 --- a/.gitignore +++ b/.gitignore @@ -21,11 +21,12 @@ go.work # macOS artifacts -.DS_STORE +.DS_Store # Visual Studio code .vscode/* !.vscode/cspell.json +!.vscode/settings.json *.code-workspace .history @@ -36,3 +37,5 @@ target/ cover.out coverage.html coverage.out + +.claude/settings.local.json diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 9d06896..021d1d6 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -14,22 +14,32 @@ "cmdhelping", "CODEOWNER", "CONFIGPATH", + "cooldown", "covermode", "coverpkg", "coverprofile", + "cyclop", "daixiang", "databasing", "dbhelper", + "dockerfiles", "dockerhub", "dockter", "DSRC", "dyld", "dylib", "Envar", + "Errorf", + "esbenp", + "exhaustruct", + "funlen", "GNRCP", "GOARCH", "GOBIN", "godoc", + "godror", + "gofmt", + "gofumpt", "golangci", "gomod", "GOPATH", @@ -41,7 +51,9 @@ "ICLA", "LDFLAGS", "LICENSESTRINGBASE", + "makefiles", "mssqldriver", + "nakedret", "nodatabase", "oneline", "osarch", @@ -71,7 +83,8 @@ "testdata", "toplevel", "USERPROFILE", - "vladopajic" + "vladopajic", + "wraperror" ], "ignorePaths": [ ".dockerignore", diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9604eb0 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,12 @@ +{ + "[json]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[markdown]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[yaml]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "editor.formatOnSave": true +} diff --git a/CHANGELOG.md b/CHANGELOG.md index ec4cfc4..bc49fa3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,13 +2,30 @@ All notable changes to this project will be documented in this file. -The format is based on [Keep a Changelog], [markdownlint], -and this project adheres to [Semantic Versioning]. +The changelog format is based on [Keep a Changelog] and [CommonMark]. +This project adheres to [Semantic Versioning]. ## [Unreleased] - +## [0.3.12] - 2026-01-08 + +### Added in 0.3.12 + +- SECURITY.md with vulnerability reporting guidelines + +### Changed in 0.3.12 + +- Update CODE_OF_CONDUCT.md to Contributor Covenant 3.0 +- Update CONTRIBUTING.md with support contact and Discussions link +- Update package.Dockerfile to golang:1.25.5-bookworm +- Update makefiles/darwin.mk to use `/opt/senzing/er` as default SENZING_DIR + +### Fixed in 0.3.12 + +- Fix Windows ARM64 architecture detection in makefiles/osdetect.mk (`arm4` → `arm64`) + ## [0.3.11] - 2025-10-24 ### Changed in 0.3.11 @@ -128,6 +145,6 @@ and this project adheres to [Semantic Versioning]. - Initial checks -[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/ -[markdownlint]: https://dlaa.me/markdownlint/ -[Semantic Versioning]: https://semver.org/spec/v2.0.0.html +[CommonMark]: https://commonmark.org/ +[Keep a Changelog]: https://keepachangelog.com/ +[Semantic Versioning]: https://semver.org/ diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index f6f9f91..086972c 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,46 +1,97 @@ -# Contributor Covenant Code of Conduct +# Contributor Covenant 3.0 Code of Conduct ## Our Pledge -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. +We pledge to make our community welcoming, safe, and equitable for all. -## Our Standards +We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, +regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, +sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, +socio-economic position, level of education, or other status. +The same privileges of participation are extended to everyone who participates in good faith and in accordance with this Covenant. -Examples of behavior that contributes to creating a positive environment include: +## Encouraged Behaviors -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members +While acknowledging differences in social norms, we all strive to meet our community's expectations for positive behavior. +We also understand that our words and actions may be interpreted differently than we intend based on culture, background, or native language. -Examples of unacceptable behavior by participants include: +With these considerations in mind, we agree to behave mindfully toward each other and act in ways that center our shared values, including: -* The use of sexualized language or imagery and unwelcome sexual attention or advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a professional setting +1. Respecting the **purpose of our community**, our activities, and our ways of gathering. +2. Engaging **kindly and honestly** with others. +3. Respecting **different viewpoints** and experiences. +4. **Taking responsibility** for our actions and contributions. +5. Gracefully giving and accepting **constructive feedback**. +6. Committing to **repairing harm** when it occurs. +7. Behaving in other ways that promote and sustain the **well-being of our community**. -## Our Responsibilities +## Restricted Behaviors -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. +We agree to restrict the following behaviors in our community. Instances, threats, and promotion of these behaviors are violations of this Code of Conduct. -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. +1. **Harassment.** Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop. +2. **Character attacks.** Making insulting, demeaning, or pejorative comments directed at a community member or group of people. +3. **Stereotyping or discrimination.** Characterizing anyone's personality or behavior on the basis of immutable identities or traits. +4. **Sexualization.** Behaving in a way that would generally be considered inappropriately intimate in the context or purpose of the community. +5. **Violating confidentiality**. Sharing or acting on someone's personal or private information without their permission. +6. **Endangerment.** Causing, encouraging, or threatening violence or other harm toward any person or group. +7. Behaving in other ways that **threaten the well-being** of our community. -## Scope +### Other Restrictions + +1. **Misleading identity.** Impersonating someone else for any reason, or pretending to be someone else to evade enforcement actions. +2. **Failing to credit sources.** Not properly crediting the sources of content you contribute. +3. **Promotional materials**. Sharing marketing or other commercial content in a way that is outside the norms of the community. +4. **Irresponsible communication.** Failing to responsibly present content which includes, links or describes any other restricted behaviors. + +## Reporting an Issue + +Tensions can occur between community members even when they are trying their best to collaborate. +Not every conflict represents a code of conduct violation, and this Code of Conduct reinforces encouraged behaviors and norms that can help avoid conflicts and minimize harm. + +When an incident does occur, it is important to report it promptly. +To report a possible violation, contact the project team at -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. +Community Moderators take reports of violations seriously and will make every effort to respond in a timely manner. +They will investigate all reports of code of conduct violations, reviewing messages, logs, and recordings, or interviewing witnesses and other participants. +Community Moderators will keep investigation and enforcement actions as transparent as possible while prioritizing safety and confidentiality. +In order to honor these values, enforcement actions are carried out in private with the involved parties, but communicating to the whole community may be part of a mutually agreed upon resolution. -## Enforcement +## Addressing and Repairing Harm -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at support@senzing.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. +If an investigation by the Community Moderators finds that this Code of Conduct has been violated, the following enforcement ladder may be used to determine how best to repair harm, based on the incident's impact on the individuals involved and the community as a whole. +Depending on the severity of a violation, lower rungs on the ladder may be skipped. -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. +1. Warning + 1. Event: A violation involving a single incident or series of incidents. + 2. Consequence: A private, written warning from the Community Moderators. + 3. Repair: Examples of repair include a private written apology, acknowledgement of responsibility, and seeking clarification on expectations. +2. Temporarily Limited Activities + 1. Event: A repeated incidence of a violation that previously resulted in a warning, or the first incidence of a more serious violation. + 2. Consequence: A private, written warning with a time-limited cooldown period designed to underscore the seriousness of the situation and give the community members involved time to process the incident. The cooldown period may be limited to particular communication channels or interactions with particular community members. + 3. Repair: Examples of repair may include making an apology, using the cooldown period to reflect on actions and impact, and being thoughtful about re-entering community spaces after the period is over. +3. Temporary Suspension + 1. Event: A pattern of repeated violation which the Community Moderators have tried to address with warnings, or a single serious violation. + 2. Consequence: A private written warning with conditions for return from suspension. In general, temporary suspensions give the person being suspended time to reflect upon their behavior and possible corrective actions. + 3. Repair: Examples of repair include respecting the spirit of the suspension, meeting the specified conditions for return, and being thoughtful about how to reintegrate with the community when the suspension is lifted. +4. Permanent Ban + 1. Event: A pattern of repeated code of conduct violations that other steps on the ladder have failed to resolve, or a violation so serious that the Community Moderators determine there is no way to keep the community safe with this person as a member. + 2. Consequence: Access to all community spaces, tools, and communication channels is removed. In general, permanent bans should be rarely used, should have strong reasoning behind them, and should only be resorted to if working through other remedies has failed to change the behavior. + 3. Repair: There is no possible repair in cases of this severity. + +This enforcement ladder is intended as a guideline. It does not limit the ability of Community Managers to use their discretion and judgment, in keeping with the best interests of our community. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public or other spaces. +Examples of representing our community include using an official email address, posting via an official social media account, or acting as an appointed representative at an online or offline event. ## Attribution -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] +This Code of Conduct is adapted from the Contributor Covenant, version 3.0, permanently available at [https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/). + +Contributor Covenant is stewarded by the Organization for Ethical Source and licensed under CC BY-SA 4.0. To view a copy of this license, visit [https://creativecommons.org/licenses/by-sa/4.0/](https://creativecommons.org/licenses/by-sa/4.0/) -[homepage]: http://contributor-covenant.org -[version]: http://contributor-covenant.org/version/1/4/ +For answers to common questions about Contributor Covenant, see the FAQ at [https://www.contributor-covenant.org/faq](https://www.contributor-covenant.org/faq). +Translations are provided at [https://www.contributor-covenant.org/translations](https://www.contributor-covenant.org/translations). Additional enforcement and community guideline resources can be found at [https://www.contributor-covenant.org/resources](https://www.contributor-covenant.org/resources). +The enforcement ladder was inspired by the work of [Mozilla's code of conduct team](https://github.com/mozilla/inclusion). diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 724193c..b3002e7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,44 +14,35 @@ There are a number of ways you can contribute: ## License Agreements -If your contribution modifies the git repository, the following agreements must be established. +If your contribution modifies the Git repository, the following agreements must be established. -*Note:* License agreements are only needed for adding, modifying, and deleting artifacts kept within the repository. +_Note:_ License agreements are only needed for adding, modifying, and deleting artifacts kept within the repository. In simple terms, license agreements are needed before pull requests can be accepted. A license agreement is not needed for submitting feature request, bug reporting, or other project management. ### Individual Contributor License Agreement -In order to contribute to this repository, an -[Individual Contributor License Agreement (ICLA)] -must be completed, submitted and accepted. +In order to contribute to this repository, an [Individual Contributor License Agreement (ICLA)] must be completed, submitted, and accepted. ### Corporate Contributor License Agreement -If the contribution to this repository is on behalf of a company, a -[Corporate Contributor License Agreement (CCLA)] -must also be completed, submitted and accepted. +If the contribution to this repository is on behalf of a company, a [Corporate Contributor License Agreement (CCLA)] must also be completed, submitted, and accepted. ### Project License Agreement -The license agreement for this repository is stated in the -[LICENSE] file. +The license agreement for this repository is stated in the [LICENSE] file. ## Questions Please do not use the GitHub issue tracker to submit questions. -TODO: Instead, use ??? - -1. ??? Slack ??? -1. ??? stackoverflow.com ??? +Instead, email . +For open discussions, use GitHub's [Discussions]. ## Feature Requests All feature requests are "GitHub issues". -To request a feature, create a -[GitHub issue] -in this repository. +To request a feature, create a [GitHub issue] in this repository. When creating an issue, there will be a choice to create a "Bug report" or a "Feature request". Choose "Feature request". @@ -67,8 +58,7 @@ Choose "Bug report". ## Contributing code or documentation -To contribute code or documentation to the repository, you must have -[License Agreements] in place. +To contribute code or documentation to the repository, you must have [License Agreements] in place. This needs to be complete before a [Pull Request] can be accepted. ### Setting up a development environment @@ -104,12 +94,8 @@ cd ${GIT_REPOSITORY_DIR} ### Coding conventions -TODO: - ### Testing -TODO: - ### Pull Requests Code in the main branch is modified via GitHub pull request. @@ -125,10 +111,11 @@ Accepting pull requests will be at the discretion of Senzing, Inc. and the repos [Corporate Contributor License Agreement (CCLA)]: .github/senzing-corporate-contributor-license-agreement.pdf [Creating a pull request from a branch]: https://help.github.com/articles/creating-a-pull-request/ [Creating a pull request from a fork]: https://help.github.com/articles/creating-a-pull-request-from-a-fork/ +[Discussions]: https://github.com/senzing-garage/check-self/discussions [GitHub issue]: https://help.github.com/articles/creating-an-issue/ [Individual Contributor License Agreement (ICLA)]: .github/senzing-individual-contributor-license-agreement.pdf -[LICENSE]: LICENSE [License Agreements]: #license-agreements +[LICENSE]: LICENSE [Pull Request]: #pull-requests [Reporting bugs]: #bug-reporting [Requesting features]: #feature-requests diff --git a/Dockerfile b/Dockerfile index ffd9631..5141f36 100755 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # Stages # ----------------------------------------------------------------------------- -ARG IMAGE_BUILDER=golang:1.25.4-bookworm@sha256:e17419604b6d1f9bc245694425f0ec9b1b53685c80850900a376fb10cb0f70cb +ARG IMAGE_BUILDER=golang:1.25.5-bookworm@sha256:09f53deea14d4019922334afe6258b7b776afc1d57952be2012f2c8c4076db05 ARG IMAGE_FINAL=senzing/senzingsdk-runtime:4.1.0@sha256:e57d751dc0148bb8eeafedb7accf988413f50b54a7e46f25dfe4559d240063e5 # ----------------------------------------------------------------------------- @@ -16,7 +16,7 @@ FROM ${IMAGE_FINAL} AS senzingsdk_runtime # ----------------------------------------------------------------------------- FROM ${IMAGE_BUILDER} AS builder -ENV REFRESHED_AT=2024-07-01 +ENV REFRESHED_AT=2026-01-09 LABEL Name="senzing/go-builder" \ Maintainer="support@senzing.com" \ Version="0.1.0" @@ -54,7 +54,7 @@ RUN mkdir -p /output \ # ----------------------------------------------------------------------------- FROM ${IMAGE_FINAL} AS final -ENV REFRESHED_AT=2024-07-01 +ENV REFRESHED_AT=2026-01-09 LABEL Name="senzing/check-self" \ Maintainer="support@senzing.com" \ Version="0.1.0" diff --git a/README.md b/README.md index de9f51d..3d9f586 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Although this GitHub repository may help you understand an approach to using Sen it's not considered to be "production ready" and is not considered to be part of the Senzing product. Heck, it may not even be appropriate for your application of Senzing! -## :warning: WARNING: check-self is still in development :warning: _ +## :warning: WARNING: check-self is still in development :warning: \_ At the moment, this is "work-in-progress" with Semantic Versions of `0.n.x`. Although it can be reviewed and commented on, @@ -42,7 +42,7 @@ This command reviews the environment in which the command is run and returns a r 1. [Examples] 1. [Package reference] 1. Related artifacts: - 1. [DockerHub] + 1. [DockerHub] [SDK documentation]: https://pkg.go.dev/github.com/senzing-garage/check-self [Development]: docs/development.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..47a8e49 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,21 @@ +# Security Policy + +## Supported Versions + +The following versions of this repository are supported with security updates. + +| Version | Supported | +| ------- | :----------------: | +| 0.1.x | :white_check_mark: | +| < 0.1 | :x: | + +## Reporting a Vulnerability + +If you believe you have found a security vulnerability in this repository, +please open it privately via the [Report a security vulnerability] link in the Security tab. + +**Please do not report security vulnerabilities through public issues, discussions, or pull requests.** + +In general, project dependencies are updated within 60 days of the dependency's release. + +[Report a security vulnerability]: https://github.com/senzing-garage/template-go/security/advisories/new diff --git a/checkself/checksupportpath.go b/checkself/checksupportpath.go index 19f1e8d..3314d8f 100644 --- a/checkself/checksupportpath.go +++ b/checkself/checksupportpath.go @@ -8,7 +8,6 @@ import ( ) var RequiredSupportFiles = []string{ - "anyTransRule.ibm", "g2SifterRules.ibm", } diff --git a/docker-compose.test.yaml b/docker-compose.test.yaml index 1200075..a26403e 100644 --- a/docker-compose.test.yaml +++ b/docker-compose.test.yaml @@ -1,4 +1,3 @@ -version: '3' services: sut: build: . diff --git a/docs/development.md b/docs/development.md index 0f2ae9a..e8c1ea3 100644 --- a/docs/development.md +++ b/docs/development.md @@ -11,19 +11,19 @@ It has not been tested on Windows. These are "one-time tasks" which may already have been completed. 1. The following software programs need to be installed: - 1. [git] - 1. [make] - 1. [docker] - 1. [go] + 1. [git] + 1. [make] + 1. [docker] + 1. [go] ## Install Senzing C library Since the Senzing library is a prerequisite, it must be installed first. 1. Verify Senzing C shared objects, configuration, and SDK header files are installed. - 1. `/opt/senzing/er/lib` - 1. `/opt/senzing/er/sdk/c` - 1. `/etc/opt/senzing` + 1. `/opt/senzing/er/lib` + 1. `/opt/senzing/er/sdk/c` + 1. `/etc/opt/senzing` 1. If not installed, see [How to Install Senzing for Go Development]. @@ -31,13 +31,13 @@ Since the Senzing library is a prerequisite, it must be installed first. 1. Identify git repository. - ```console - export GIT_ACCOUNT=senzing-garage - export GIT_REPOSITORY=check-self - export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git - export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}" + ```console + export GIT_ACCOUNT=senzing-garage + export GIT_REPOSITORY=check-self + export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git + export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}" - ``` + ``` 1. Using the environment variables values just set, follow steps in [clone-repository] to install the Git repository. @@ -47,96 +47,95 @@ Since the Senzing library is a prerequisite, it must be installed first. 1. A one-time command to install dependencies needed for `make` targets. Example: - ```console - cd ${GIT_REPOSITORY_DIR} - make dependencies-for-development + ```console + cd ${GIT_REPOSITORY_DIR} + make dependencies-for-development - ``` + ``` 1. Install dependencies needed for [Go] code. Example: - ```console - cd ${GIT_REPOSITORY_DIR} - make dependencies + ```console + cd ${GIT_REPOSITORY_DIR} + make dependencies - ``` + ``` ## Lint 1. Run linting. Example: - ```console - cd ${GIT_REPOSITORY_DIR} - make lint + ```console + cd ${GIT_REPOSITORY_DIR} + make lint - ``` + ``` ## Build 1. Build the binaries. Example: - ```console - cd ${GIT_REPOSITORY_DIR} - make clean build + ```console + cd ${GIT_REPOSITORY_DIR} + make clean build - ``` + ``` 1. The binaries will be found in the `${GIT_REPOSITORY_DIR}/target` directory. Example: - ```console - tree ${GIT_REPOSITORY_DIR}/target + ```console + tree ${GIT_REPOSITORY_DIR}/target - ``` + ``` ## Run 1. Run program. Examples: + 1. Linux - 1. Linux + ```console + ${GIT_REPOSITORY_DIR}/target/linux-amd64/check-self - ```console - ${GIT_REPOSITORY_DIR}/target/linux-amd64/check-self + ``` - ``` + 1. macOS - 1. macOS + ```console + ${GIT_REPOSITORY_DIR}/target/darwin-amd64/check-self - ```console - ${GIT_REPOSITORY_DIR}/target/darwin-amd64/check-self + ``` - ``` + 1. Windows - 1. Windows + ```console + ${GIT_REPOSITORY_DIR}/target/windows-amd64/check-self - ```console - ${GIT_REPOSITORY_DIR}/target/windows-amd64/check-self - - ``` + ``` 1. Clean up. Example: - ```console - cd ${GIT_REPOSITORY_DIR} - make clean + ```console + cd ${GIT_REPOSITORY_DIR} + make clean - ``` + ``` ## Test 1. Run tests. Example: - ```console - cd ${GIT_REPOSITORY_DIR} - make clean setup test + ```console + cd ${GIT_REPOSITORY_DIR} + make clean setup test - ``` + ``` ## Coverage @@ -145,11 +144,11 @@ Create a code coverage map. 1. Run Go tests. Example: - ```console - cd ${GIT_REPOSITORY_DIR} - make clean setup coverage + ```console + cd ${GIT_REPOSITORY_DIR} + make clean setup coverage - ``` + ``` A web-browser will show the results of the coverage. The goal is to have over 80% coverage. @@ -160,65 +159,65 @@ Create a code coverage map. 1. View documentation. Example: - ```console - cd ${GIT_REPOSITORY_DIR} - make clean documentation + ```console + cd ${GIT_REPOSITORY_DIR} + make clean documentation - ``` + ``` 1. If a web page doesn't appear, visit [localhost:6060]. 1. Senzing documentation will be in the "Third party" section. `github.com` > `senzing-garage` > `check-self` 1. When a versioned release is published with a `v0.0.0` format tag, -the reference can be found by clicking on the following badge at the top of the README.md page. -Example: + the reference can be found by clicking on the following badge at the top of the README.md page. + Example: - [![Go Reference Badge]][Go Reference] + [![Go Reference Badge]][Go Reference] 1. To stop the `godoc` server, run - ```console - cd ${GIT_REPOSITORY_DIR} - make clean + ```console + cd ${GIT_REPOSITORY_DIR} + make clean - ``` + ``` ## Docker 1. Use make target to run a docker images that builds RPM and DEB files. Example: - ```console - cd ${GIT_REPOSITORY_DIR} - make docker-build + ```console + cd ${GIT_REPOSITORY_DIR} + make docker-build - ``` + ``` 1. Run docker container. Example: - ```console - docker run --rm senzing/check-self + ```console + docker run --rm senzing/check-self - ``` + ``` 1. **Optional:** Test using `docker-compose`. Example: - ```console - cd ${GIT_REPOSITORY_DIR} - make clean docker-test + ```console + cd ${GIT_REPOSITORY_DIR} + make clean docker-test - ``` + ``` To bring the `docker-compose` formation, run - ```console - cd ${GIT_REPOSITORY_DIR} - make clean + ```console + cd ${GIT_REPOSITORY_DIR} + make clean - ``` + ``` ## Package @@ -227,54 +226,54 @@ Example: 1. Use make target to run a docker images that builds RPM and DEB files. Example: - ```console - cd ${GIT_REPOSITORY_DIR} - make package + ```console + cd ${GIT_REPOSITORY_DIR} + make package - ``` + ``` 1. The results will be in the `${GIT_REPOSITORY_DIR}/target` directory. Example: - ```console - tree ${GIT_REPOSITORY_DIR}/target + ```console + tree ${GIT_REPOSITORY_DIR}/target - ``` + ``` ### Test DEB package on Ubuntu 1. Determine if `check-self` is installed. Example: - ```console - apt list --installed | grep check-self + ```console + apt list --installed | grep check-self - ``` + ``` 1. :pencil2: Install `check-self`. Example: - ```console - cd ${GIT_REPOSITORY_DIR}/target - sudo apt install ./check-self-0.0.0.deb + ```console + cd ${GIT_REPOSITORY_DIR}/target + sudo apt install ./check-self-0.0.0.deb - ``` + ``` 1. Run command. Example: - ```console - check-self + ```console + check-self - ``` + ``` 1. Remove `check-self` from system. Example: - ```console - sudo apt-get remove check-self + ```console + sudo apt-get remove check-self - ``` + ``` ## References diff --git a/go.mod b/go.mod index cbed8ca..c390e76 100644 --- a/go.mod +++ b/go.mod @@ -4,56 +4,57 @@ go 1.24.4 require ( github.com/senzing-garage/go-cmdhelping v0.3.8 - github.com/senzing-garage/go-databasing v0.5.8 - github.com/senzing-garage/go-helpers v0.6.13 - github.com/senzing-garage/go-sdk-abstract-factory v0.9.16 + github.com/senzing-garage/go-databasing v0.5.9 + github.com/senzing-garage/go-helpers v0.6.15 + github.com/senzing-garage/go-sdk-abstract-factory v0.9.17 github.com/senzing-garage/sz-sdk-go v0.15.11 - github.com/spf13/cobra v1.10.1 + github.com/spf13/cobra v1.10.2 github.com/spf13/viper v1.21.0 github.com/stretchr/testify v1.11.1 - google.golang.org/grpc v1.77.0 + google.golang.org/grpc v1.78.0 ) require ( filippo.io/edwards25519 v1.1.0 // indirect - github.com/VictoriaMetrics/easyproto v0.1.4 // indirect + github.com/VictoriaMetrics/easyproto v1.1.3 // indirect github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/go-logfmt/logfmt v0.6.1 // indirect github.com/go-sql-driver/mysql v1.9.3 // indirect github.com/go-viper/mapstructure/v2 v2.4.0 // indirect - github.com/godror/godror v0.49.4 // indirect + github.com/godror/godror v0.49.6 // indirect github.com/godror/knownpb v0.3.0 // indirect github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect github.com/golang-sql/sqlexp v0.1.0 // indirect github.com/google/uuid v1.6.0 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/lib/pq v1.10.9 // indirect - github.com/mattn/go-sqlite3 v1.14.32 // indirect - github.com/microsoft/go-mssqldb v1.9.3 // indirect + github.com/mattn/go-sqlite3 v1.14.33 // indirect + github.com/microsoft/go-mssqldb v1.9.5 // indirect github.com/pelletier/go-toml/v2 v2.2.4 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/sagikazarmark/locafero v0.12.0 // indirect - github.com/senzing-garage/go-logging v1.5.3 // indirect + github.com/senzing-garage/go-logging v1.5.4 // indirect github.com/senzing-garage/go-messaging v1.5.3 // indirect - github.com/senzing-garage/go-observing v0.3.6 // indirect - github.com/senzing-garage/sz-sdk-go-core v0.9.12 // indirect - github.com/senzing-garage/sz-sdk-go-grpc v0.9.11 // indirect - github.com/senzing-garage/sz-sdk-go-mock v0.8.13 // indirect + github.com/senzing-garage/go-observing v0.3.7 // indirect + github.com/senzing-garage/sz-sdk-go-core v0.9.13 // indirect + github.com/senzing-garage/sz-sdk-go-grpc v0.9.12 // indirect + github.com/senzing-garage/sz-sdk-go-mock v0.8.14 // indirect github.com/senzing-garage/sz-sdk-proto v0.8.8 // indirect + github.com/shopspring/decimal v1.4.0 // indirect github.com/spf13/afero v1.15.0 // indirect github.com/spf13/cast v1.10.0 // indirect github.com/spf13/pflag v1.0.10 // indirect github.com/subosito/gotenv v1.6.0 // indirect go.yaml.in/yaml/v3 v3.0.4 // indirect - golang.org/x/crypto v0.45.0 // indirect - golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect - golang.org/x/net v0.47.0 // indirect - golang.org/x/sys v0.38.0 // indirect - golang.org/x/text v0.31.0 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20251022142026-3a174f9686a8 // indirect - google.golang.org/protobuf v1.36.10 // indirect + golang.org/x/crypto v0.46.0 // indirect + golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93 // indirect + golang.org/x/net v0.48.0 // indirect + golang.org/x/sys v0.40.0 // indirect + golang.org/x/text v0.32.0 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b // indirect + google.golang.org/protobuf v1.36.11 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 6bb7150..dbf87d9 100644 --- a/go.sum +++ b/go.sum @@ -14,8 +14,8 @@ github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2 h1:oygO0locgZJ github.com/AzureAD/microsoft-authentication-library-for-go v1.4.2/go.mod h1:wP83P5OoQ5p6ip3ScPr0BAq0BvuPAvacpEuSzyouqAI= github.com/UNO-SOFT/zlog v0.8.1 h1:TEFkGJHtUfTRgMkLZiAjLSHALjwSBdw6/zByMC5GJt4= github.com/UNO-SOFT/zlog v0.8.1/go.mod h1:yqFOjn3OhvJ4j7ArJqQNA+9V+u6t9zSAyIZdWdMweWc= -github.com/VictoriaMetrics/easyproto v0.1.4 h1:r8cNvo8o6sR4QShBXQd1bKw/VVLSQma/V2KhTBPf+Sc= -github.com/VictoriaMetrics/easyproto v0.1.4/go.mod h1:QlGlzaJnDfFd8Lk6Ci/fuLxfTo3/GThPs2KH23mv710= +github.com/VictoriaMetrics/easyproto v1.1.3 h1:gRSA3ZQs7n4+5I+SniDWD59jde1jVq4JmgQ9HUUyvk4= +github.com/VictoriaMetrics/easyproto v1.1.3/go.mod h1:QlGlzaJnDfFd8Lk6Ci/fuLxfTo3/GThPs2KH23mv710= github.com/aquilax/truncate v1.0.1 h1:+hqGSRxnQ0F5wdPCGbi1XW4ipQ6vzpli23V9Rd+I/mc= github.com/aquilax/truncate v1.0.1/go.mod h1:BeMESIDMlvlS3bmg4BVvBbbZUNwWtS8uzYPAKXwwhLw= github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= @@ -37,8 +37,8 @@ github.com/go-sql-driver/mysql v1.9.3 h1:U/N249h2WzJ3Ukj8SowVFjdtZKfu9vlLZxjPXV1 github.com/go-sql-driver/mysql v1.9.3/go.mod h1:qn46aNg1333BRMNU69Lq93t8du/dwxI64Gl8i5p1WMU= github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs= github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= -github.com/godror/godror v0.49.4 h1:8kKWKoR17nPX7u10hr4GwD4u10hzTZED9ihdkuzRrKI= -github.com/godror/godror v0.49.4/go.mod h1:kTMcxZzRw73RT5kn9v3JkBK4kHI6dqowHotqV72ebU8= +github.com/godror/godror v0.49.6 h1:ts4ZGw8uLJ42e1D7aXmVuSrld0/lzUzmIUjuUuQOgGM= +github.com/godror/godror v0.49.6/go.mod h1:kTMcxZzRw73RT5kn9v3JkBK4kHI6dqowHotqV72ebU8= github.com/godror/knownpb v0.3.0 h1:+caUdy8hTtl7X05aPl3tdL540TvCcaQA6woZQroLZMw= github.com/godror/knownpb v0.3.0/go.mod h1:PpTyfJwiOEAzQl7NtVCM8kdPCnp3uhxsZYIzZ5PV4zU= github.com/golang-jwt/jwt/v5 v5.2.2 h1:Rl4B7itRWVtYIHFrSNd7vhTiz9UpLdi6gZhZ3wEeDy8= @@ -63,10 +63,10 @@ github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0 github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw= github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/mattn/go-sqlite3 v1.14.32 h1:JD12Ag3oLy1zQA+BNn74xRgaBbdhbNIDYvQUEuuErjs= -github.com/mattn/go-sqlite3 v1.14.32/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= -github.com/microsoft/go-mssqldb v1.9.3 h1:hy4p+LDC8LIGvI3JATnLVmBOLMJbmn5X400mr5j0lPs= -github.com/microsoft/go-mssqldb v1.9.3/go.mod h1:GBbW9ASTiDC+mpgWDGKdm3FnFLTUsLYN3iFL90lQ+PA= +github.com/mattn/go-sqlite3 v1.14.33 h1:A5blZ5ulQo2AtayQ9/limgHEkFreKj1Dv226a1K73s0= +github.com/mattn/go-sqlite3 v1.14.33/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= +github.com/microsoft/go-mssqldb v1.9.5 h1:orwya0X/5bsL1o+KasupTkk2eNTNFkTQG0BEe/HxCn0= +github.com/microsoft/go-mssqldb v1.9.5/go.mod h1:VCP2a0KEZZtGLRHd1PsLavLFYy/3xX2yJUPycv3Sr2Q= github.com/oklog/ulid/v2 v2.0.2 h1:r4fFzBm+bv0wNKNh5eXTwU7i85y5x+uwkxCUTNVQqLc= github.com/oklog/ulid/v2 v2.0.2/go.mod h1:mtBL0Qe/0HAx6/a4Z30qxVIAL1eQDweXq5lxOEiwQ68= github.com/pelletier/go-toml/v2 v2.2.4 h1:mye9XuhQ6gvn5h28+VilKrrPoQVanw5PMw/TB0t5Ec4= @@ -85,34 +85,36 @@ github.com/sagikazarmark/locafero v0.12.0 h1:/NQhBAkUb4+fH1jivKHWusDYFjMOOKU88ee github.com/sagikazarmark/locafero v0.12.0/go.mod h1:sZh36u/YSZ918v0Io+U9ogLYQJ9tLLBmM4eneO6WwsI= github.com/senzing-garage/go-cmdhelping v0.3.8 h1:anJw9NywgF9ic91pYxPJtPfXnaLrKZTS/ck/80Ui7jk= github.com/senzing-garage/go-cmdhelping v0.3.8/go.mod h1:JeCW8NiMMMr1aTZ/4nOjracx0mVd1//CD7HoBjto2pg= -github.com/senzing-garage/go-databasing v0.5.8 h1:OSgcwO8KwHNoqMDo3i0RjAcaKj720B1oUoI/3AfidFk= -github.com/senzing-garage/go-databasing v0.5.8/go.mod h1:LypxgRI414I04S5lqdrxNIQ9hVuZHOQMrdC0sP34OyI= -github.com/senzing-garage/go-helpers v0.6.13 h1:9RbLEQsq4NiBCRjZb1/+DFgRqPeXUyq9xRoVjX0edRQ= -github.com/senzing-garage/go-helpers v0.6.13/go.mod h1:0hLab0TEvzXW+iWBExnbev+44yLngLURRezbPIl/8yQ= -github.com/senzing-garage/go-logging v1.5.3 h1:RYF5hHL4fAUzOFMQwwotT5/I0YD3ItDF589wKtw73X4= -github.com/senzing-garage/go-logging v1.5.3/go.mod h1:AAZvO6ectkKzD1ZbUl24X1TOd3riCQLYaMKgBnuiZF0= +github.com/senzing-garage/go-databasing v0.5.9 h1:vIeFrhe4PDXUYMaYT5LZ/O9PSX43cBE/wNFnKmXGCkA= +github.com/senzing-garage/go-databasing v0.5.9/go.mod h1:awn1U+vxMSq6XH/l/VbK46fSv2u47OvQ4mYOtB1C/6A= +github.com/senzing-garage/go-helpers v0.6.15 h1:LepdXPH7duXbXAcHfIsKS1yDD7Jv/LxYz91YVIPCsoc= +github.com/senzing-garage/go-helpers v0.6.15/go.mod h1:++yokXEbDl9j2C0Jq5noOkCuAELMbYEueIQv4/fYXRw= +github.com/senzing-garage/go-logging v1.5.4 h1:xTlvbvnX2j5KAKfMhwXw278smKKuFnRLmbLY2x8a8Og= +github.com/senzing-garage/go-logging v1.5.4/go.mod h1:4J8IpcncQtNo4+0PYaB853xvbyvt+0zBh1sAt6E5MSA= github.com/senzing-garage/go-messaging v1.5.3 h1:bH+LtEgNJj/PRbg1VMK9/Gk457CdfdcjMiubxffbTog= github.com/senzing-garage/go-messaging v1.5.3/go.mod h1:7qvSNAVyWcSIcsnDAm8obCxHItljN295O3fX4bOgfp0= -github.com/senzing-garage/go-observing v0.3.6 h1:vIQTaWbCxYRSJFw4pDKKfTqOYqugB2rUMH3LWwGUZFM= -github.com/senzing-garage/go-observing v0.3.6/go.mod h1:ghkX9HSaKGjwYzsPLZVt+FO9AU/w4jzqvI2MAXmfGXs= -github.com/senzing-garage/go-sdk-abstract-factory v0.9.16 h1:aPnHivQu9GZA9ynx3UlVS3RnUB7woWI+/BUqS6OrdsU= -github.com/senzing-garage/go-sdk-abstract-factory v0.9.16/go.mod h1:rYsWBT0J+13RYiPyVQ/hOaIwNewVsxW+hb0QaqN4mIw= +github.com/senzing-garage/go-observing v0.3.7 h1:eEoxULyO3MKvObEJePh6Nmw1ZQRlahJ3GkHH9FPvB7o= +github.com/senzing-garage/go-observing v0.3.7/go.mod h1:E/hy/eTahdfcXEPAQIELBFEBPIbYAp4hQRahbbH0u+Y= +github.com/senzing-garage/go-sdk-abstract-factory v0.9.17 h1:AxCVq30uClYWWCjoGvn/KH34ocLslAYe0GRdnRLBpfI= +github.com/senzing-garage/go-sdk-abstract-factory v0.9.17/go.mod h1:WQaLdtE85IWnenNMngC4ANwM1ReKHq2m3JvwL71oiRQ= github.com/senzing-garage/sz-sdk-go v0.15.11 h1:uVw3JldDZTCwT9F8JMmmzCXcaijQGxvhAsILaCYllt4= github.com/senzing-garage/sz-sdk-go v0.15.11/go.mod h1:OO/kisqP2NBG/3eRG0M1q9diOZDfFEHf+g+exCv6yv0= -github.com/senzing-garage/sz-sdk-go-core v0.9.12 h1:Xx/RdEQ3dewBKkOM4Y+svN0Xy9SondLLqmpXnX8aX6w= -github.com/senzing-garage/sz-sdk-go-core v0.9.12/go.mod h1:adVN44132sXy+PYeTOQMVlL06dpBjyicUNgjyfrd9qA= -github.com/senzing-garage/sz-sdk-go-grpc v0.9.11 h1:h/PqmuKdVtIX5++k+t3qBS29Rxm1er9/MYN5KT5E8Qg= -github.com/senzing-garage/sz-sdk-go-grpc v0.9.11/go.mod h1:XMhpN0o6cgHCmWABeURfksY3XYNJPwhSUi6gYCcZ7kY= -github.com/senzing-garage/sz-sdk-go-mock v0.8.13 h1:cnVjbGYCUS1EEI4uuik0mpaaSQjJN6M549m6qNBtsK4= -github.com/senzing-garage/sz-sdk-go-mock v0.8.13/go.mod h1:y4LJMd3Hw3CY2P8cP9nnYfUhzrwS0TlZNaTGkFZ/a/U= +github.com/senzing-garage/sz-sdk-go-core v0.9.13 h1:62JgWrBNU+yA4oEv2t7OFwVVfyoZAXEp/pg1R3ZicoM= +github.com/senzing-garage/sz-sdk-go-core v0.9.13/go.mod h1:o42jc9lriZi143T4hqeDadNc/laK/6tfLisL3lI1tDY= +github.com/senzing-garage/sz-sdk-go-grpc v0.9.12 h1:jg7eUzFJl2r9Pu9RMIWlOF655FJfhrkxX+O7wzJptUs= +github.com/senzing-garage/sz-sdk-go-grpc v0.9.12/go.mod h1:R2d6NrZt6/f5FFNU2ayUGAfbf+XdsKxzk5JnE0lRLxg= +github.com/senzing-garage/sz-sdk-go-mock v0.8.14 h1:yJPkD/mC1kOnI97aXQy4IIm2X56qSdE1Nakq7/PGelc= +github.com/senzing-garage/sz-sdk-go-mock v0.8.14/go.mod h1:FzGI/fNz9B7zRTLUwo7H8PYBlujoMyfhgnkB5btSWew= github.com/senzing-garage/sz-sdk-proto v0.8.8 h1:jOX/GqLxvrdH4E9/nVGpYfgmxD6pXPb1H1RqjuYuSlw= github.com/senzing-garage/sz-sdk-proto v0.8.8/go.mod h1:TiYEb9IAgBTmTmF2X4YL8lJf2FhqaeHmwGG1G4YTFro= +github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k= +github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME= github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= github.com/spf13/afero v1.15.0/go.mod h1:NC2ByUVxtQs4b3sIUphxK0NioZnmxgyCrfzeuq8lxMg= github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY= github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo= -github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s= -github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0= +github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= +github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= @@ -136,28 +138,28 @@ go.opentelemetry.io/otel/trace v1.38.0 h1:Fxk5bKrDZJUH+AMyyIXGcFAPah0oRcT+LuNtJr go.opentelemetry.io/otel/trace v1.38.0/go.mod h1:j1P9ivuFsTceSWe1oY+EeW3sc+Pp42sO++GHkg4wwhs= go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= -golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q= -golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4= -golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 h1:mgKeJMpvi0yx/sU5GsxQ7p6s2wtOnGAHZWCHUM4KGzY= -golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546/go.mod h1:j/pmGrbnkbPtQfxEe5D0VQhZC6qKbfKifgD0oM7sR70= -golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY= -golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU= -golang.org/x/sync v0.18.0 h1:kr88TuHDroi+UVf+0hZnirlk8o8T+4MrK6mr60WkH/I= -golang.org/x/sync v0.18.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= -golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= -golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= -golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU= -golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254= -golang.org/x/text v0.31.0 h1:aC8ghyu4JhP8VojJ2lEHBnochRno1sgL6nEi9WGFGMM= -golang.org/x/text v0.31.0/go.mod h1:tKRAlv61yKIjGGHX/4tP1LTbc13YSec1pxVEWXzfoeM= +golang.org/x/crypto v0.46.0 h1:cKRW/pmt1pKAfetfu+RCEvjvZkA9RimPbh7bhFjGVBU= +golang.org/x/crypto v0.46.0/go.mod h1:Evb/oLKmMraqjZ2iQTwDwvCtJkczlDuTmdJXoZVzqU0= +golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93 h1:fQsdNF2N+/YewlRZiricy4P1iimyPKZ/xwniHj8Q2a0= +golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93/go.mod h1:EPRbTFwzwjXj9NpYyyrvenVh9Y+GFeEvMNh7Xuz7xgU= +golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU= +golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY= +golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= +golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ= +golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/term v0.38.0 h1:PQ5pkm/rLO6HnxFR7N2lJHOZX6Kez5Y1gDSJla6jo7Q= +golang.org/x/term v0.38.0/go.mod h1:bSEAKrOT1W+VSu9TSCMtoGEOUcKxOKgl3LE5QEF/xVg= +golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU= +golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY= gonum.org/v1/gonum v0.16.0 h1:5+ul4Swaf3ESvrOnidPp4GZbzf0mxVQpDCYUQE7OJfk= gonum.org/v1/gonum v0.16.0/go.mod h1:fef3am4MQ93R2HHpKnLk4/Tbh/s0+wqD5nfa6Pnwy4E= -google.golang.org/genproto/googleapis/rpc v0.0.0-20251022142026-3a174f9686a8 h1:M1rk8KBnUsBDg1oPGHNCxG4vc1f49epmTO7xscSajMk= -google.golang.org/genproto/googleapis/rpc v0.0.0-20251022142026-3a174f9686a8/go.mod h1:7i2o+ce6H/6BluujYR+kqX3GKH+dChPTQU19wjRPiGk= -google.golang.org/grpc v1.77.0 h1:wVVY6/8cGA6vvffn+wWK5ToddbgdU3d8MNENr4evgXM= -google.golang.org/grpc v1.77.0/go.mod h1:z0BY1iVj0q8E1uSQCjL9cppRj+gnZjzDnzV0dHhrNig= -google.golang.org/protobuf v1.36.10 h1:AYd7cD/uASjIL6Q9LiTjz8JLcrh/88q5UObnmY3aOOE= -google.golang.org/protobuf v1.36.10/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b h1:Mv8VFug0MP9e5vUxfBcE3vUkV6CImK3cMNMIDFjmzxU= +google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b/go.mod h1:j9x/tPzZkyxcgEFkiKEEGxfvyumM01BEtsW8xzOahRQ= +google.golang.org/grpc v1.78.0 h1:K1XZG/yGDJnzMdd/uZHAkVqJE+xIDOcmdSFZkBUicNc= +google.golang.org/grpc v1.78.0/go.mod h1:I47qjTo4OKbMkjA/aOOwxDIiPSBofUtQUI5EfpWvW7U= +google.golang.org/protobuf v1.36.11 h1:fV6ZwhNocDyBLK0dj+fg8ektcVegBBuEolpbTQyBNVE= +google.golang.org/protobuf v1.36.11/go.mod h1:HTf+CrKn2C3g5S8VImy6tdcUvCska2kB7j23XfzDpco= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= diff --git a/makefiles/darwin.mk b/makefiles/darwin.mk index 151864a..a362f70 100644 --- a/makefiles/darwin.mk +++ b/makefiles/darwin.mk @@ -4,9 +4,9 @@ # Variables # ----------------------------------------------------------------------------- -SENZING_DIR ?= $(HOME)/senzing/er +SENZING_DIR ?= /opt/senzing/er SENZING_TOOLS_SENZING_DIRECTORY ?= $(SENZING_DIR) -LD_LIBRARY_PATH := $(SENZING_TOOLS_SENZING_DIRECTORY)/lib:$(SENZING_TOOLS_SENZING_DIRECTORY)/lib/macos +LD_LIBRARY_PATH ?= $(SENZING_TOOLS_SENZING_DIRECTORY)/lib:$(SENZING_TOOLS_SENZING_DIRECTORY)/lib/macos DYLD_LIBRARY_PATH := $(LD_LIBRARY_PATH) CGO_CFLAGS := -g -I${SENZING_DIR}/sdk/c CGO_LDFLAGS := -L$(SENZING_DIR)/lib -lSz -Wl,-no_warn_duplicate_libraries diff --git a/makefiles/osdetect.mk b/makefiles/osdetect.mk index 3c438cb..66c372c 100644 --- a/makefiles/osdetect.mk +++ b/makefiles/osdetect.mk @@ -4,7 +4,7 @@ ifeq ($(OS),Windows_NT) OSARCH = x86_64 endif ifeq ($(PROCESSOR_ARCHITECTURE), ARM64) - OSARCH = arm4 + OSARCH = arm64 endif else OSTYPE = $(shell uname -s | tr '[:upper:]' '[:lower:]') diff --git a/package.Dockerfile b/package.Dockerfile index b764681..e14418d 100755 --- a/package.Dockerfile +++ b/package.Dockerfile @@ -3,7 +3,7 @@ # ----------------------------------------------------------------------------- ARG IMAGE_SENZINGSDK_RUNTIME=senzing/senzingsdk-runtime:4.1.0@sha256:e57d751dc0148bb8eeafedb7accf988413f50b54a7e46f25dfe4559d240063e5 -ARG IMAGE_BUILDER=golang:1.25.4-bookworm@sha256:e17419604b6d1f9bc245694425f0ec9b1b53685c80850900a376fb10cb0f70cb +ARG IMAGE_BUILDER=golang:1.25.5-bookworm@sha256:09f53deea14d4019922334afe6258b7b776afc1d57952be2012f2c8c4076db05 ARG IMAGE_FPM=dockter/fpm:1.1.0@sha256:a92ac598d35f1a7a4a659e26bd0e1bd25f317aafdcd4be8bf2795314c421d89b ARG IMAGE_FINAL=alpine@sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412 @@ -18,7 +18,7 @@ FROM ${IMAGE_SENZINGSDK_RUNTIME} AS senzingsdk_runtime # ----------------------------------------------------------------------------- FROM ${IMAGE_BUILDER} AS builder -ENV REFRESHED_AT=2024-07-01 +ENV REFRESHED_AT=2026-01-09 LABEL Name="senzing/go-builder" \ Maintainer="support@senzing.com" \ Version="0.1.0" @@ -57,7 +57,7 @@ RUN mkdir -p /output \ # ----------------------------------------------------------------------------- FROM ${IMAGE_FPM} AS fpm -ENV REFRESHED_AT=2024-07-01 +ENV REFRESHED_AT=2026-01-09 LABEL Name="senzing/fpm-builder" \ Maintainer="support@senzing.com" \ Version="0.1.0" @@ -101,7 +101,7 @@ RUN fpm \ # ----------------------------------------------------------------------------- FROM ${IMAGE_FINAL} AS final -ENV REFRESHED_AT=2024-07-01 +ENV REFRESHED_AT=2026-01-09 LABEL Name="senzing/final-stage" \ Maintainer="support@senzing.com" \ Version="0.1.0"