Skip to content

Commit

Permalink
140.dockter.1 (#145)
Browse files Browse the repository at this point in the history
* #140 Update dependencies

* #140 Prepare for versioned release

* #140 migrate from senzing to senzing-garage

* #140 Update dependencies

* update go workflow permissions

* #140 Prepare for versioned release

---------

Co-authored-by: Sam <109683132+kernelsam@users.noreply.github.com>
  • Loading branch information
docktermj and kernelsam authored Jan 26, 2024
1 parent 3866f08 commit db5bf3b
Show file tree
Hide file tree
Showing 25 changed files with 114 additions and 72 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/go-proxy-pull.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
# Based on
# - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# - https://github.com/marketplace/actions/go-proxy-warming
# - https://github.com/andrewslotin/go-proxy-pull-action
# - https://futurestud.io/tutorials/github-actions-run-a-workflow-when-creating-a-tag

name: go-proxy-pull.yaml

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: write

jobs:
go-proxy-pull:
runs-on: ubuntu-latest
steps:
- name: Pull new module version
uses: andrewslotin/go-proxy-pull-action@v1.1.0
with:
import_path: github.com/senzing/g2-sdk-go-base
import_path: github.com/senzing-garage/g2-sdk-go-base
6 changes: 6 additions & 0 deletions .github/workflows/go-test-darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
# - https://github.com/marketplace/actions/setup-go-environment

name: go-test-darwin.yaml

on: [push]

env:
DYLD_LIBRARY_PATH: /opt/senzing/g2/lib:/opt/senzing/g2/lib/macos
LD_LIBRARY_PATH: /opt/senzing/g2/lib:/opt/senzing/g2/lib/macos
SENZING_TOOLS_DATABASE_URL: "sqlite3://na:na@/tmp/sqlite/G2C.db"

permissions:
contents: read

jobs:
go-test-darwin:
runs-on: ${{ matrix.os }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/go-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
# - https://github.com/marketplace/actions/setup-go-environment

name: go-test-linux.yaml

on: [push]

env:
LD_LIBRARY_PATH: /opt/senzing/g2/lib
SENZING_TOOLS_DATABASE_URL: "sqlite3://na:na@/tmp/sqlite/G2C.db"

permissions:
contents: read

jobs:
go-test-linux:
runs-on: ${{ matrix.os }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/go-test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
# - https://github.com/marketplace/actions/setup-go-environment

name: go-test-windows.yaml

on: [push]

env:
SENZING_TOOLS_DATABASE_URL: 'sqlite3://na:na@nowhere/C:\Temp\sqlite\G2C.db'

permissions:
contents: read

jobs:
go-test-windows:
runs-on: ${{ matrix.os }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/gofmt.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: gofmt.yaml

on:
pull_request:
branches: [main]

permissions:
contents: read

jobs:
gofmt:
uses: senzing-factory/build-resources/.github/workflows/gofmt.yaml@main
6 changes: 6 additions & 0 deletions .github/workflows/gosec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,21 @@
# - https://github.com/securego/gosec

name: gosec.yaml

on:
push:
branches:
- main
pull_request:
branches:
- main

env:
LD_LIBRARY_PATH: /opt/senzing/g2/lib

permissions:
contents: read

jobs:
gosec:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/make-go-tag.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: make-go-tag.yaml

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
permissions: write-all

permissions:
contents: write

jobs:
make-go-tag:
name: Make a vM.m.P tag
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

-

## [0.5.0] - 2024-01-26

### Changed in 0.5.0

- Renamed module to `github.com/senzing-garage/g2-sdk-go-base`
- Refactor to [template-go](https://github.com/senzing-garage/template-go)
- Update dependencies
- github.com/senzing-garage/g2-sdk-go v0.9.0
- google.golang.org/grpc v1.61.0

## [0.4.0] - 2024-01-02

### Changed in 0.4.0
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ The Senzing g2-sdk-go-base packages provide a
language Software Development Kit that wraps the
Senzing C SDK APIs.

[![Go Reference](https://pkg.go.dev/badge/github.com/senzing/g2-sdk-go-base.svg)](https://pkg.go.dev/github.com/senzing/g2-sdk-go-base)
[![Go Report Card](https://goreportcard.com/badge/github.com/senzing/g2-sdk-go-base)](https://goreportcard.com/report/github.com/senzing/g2-sdk-go-base)
[![Go Reference](https://pkg.go.dev/badge/github.com/senzing-garage/g2-sdk-go-base.svg)](https://pkg.go.dev/github.com/senzing-garage/g2-sdk-go-base)
[![Go Report Card](https://goreportcard.com/badge/github.com/senzing-garage/g2-sdk-go-base)](https://goreportcard.com/report/github.com/senzing-garage/g2-sdk-go-base)
[![License](https://img.shields.io/badge/License-Apache2-brightgreen.svg)](https://github.com/senzing-garage/g2-sdk-go-base/blob/main/LICENSE)

[![gosec.yaml](https://github.com/senzing-garage/g2-sdk-go-base/actions/workflows/gosec.yaml/badge.svg)](https://github.com/senzing-garage/g2-sdk-go-base/actions/workflows/gosec.yaml)
Expand Down Expand Up @@ -64,4 +64,4 @@ interface include:
1. [Development](docs/development.md)
1. [Errors](docs/errors.md)
1. [Examples](docs/examples.md)
1. [Package reference](https://pkg.go.dev/github.com/senzing/g2-sdk-go-base)
1. [Package reference](https://pkg.go.dev/github.com/senzing-garage/g2-sdk-go-base)
6 changes: 3 additions & 3 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The Senzing g2-sdk-go-base packages enable Go programs to call Senzing library f
Under the covers, Golang's CGO is used by the g2-sdk-go-base packages to make the calls
to the Senzing functions.
More information at https://github.com/senzing/g2-sdk-go-base
More information at https://github.com/senzing-garage/g2-sdk-go-base
# Installing Senzing library
Expand All @@ -34,7 +34,7 @@ Using Docker, build an installer:
curl -X GET \
--output /tmp/senzing-versions-latest.sh \
https://raw.githubusercontent.com/Senzing/knowledge-base/main/lists/senzing-versions-latest.sh
https://raw.githubusercontent.com/senzing-garage/knowledge-base/main/lists/senzing-versions-latest.sh
source /tmp/senzing-versions-latest.sh
sudo docker build \
Expand All @@ -43,7 +43,7 @@ Using Docker, build an installer:
--build-arg SENZING_DATA_VERSION=${SENZING_VERSION_SENZINGDATA} \
--no-cache \
--tag senzing/installer:${SENZING_VERSION_SENZINGAPI} \
https://github.com/senzing/docker-installer.git#main
https://github.com/senzing-garage/docker-installer.git#main
Using Docker, install Senzing:
Expand Down
6 changes: 3 additions & 3 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ in testing the `g2-sdk-go-base` packages.

curl -X GET \
--output ${SENZING_DEMO_DIR}/docker-versions-stable.sh \
https://raw.githubusercontent.com/Senzing/knowledge-base/main/lists/docker-versions-stable.sh
https://raw.githubusercontent.com/senzing-garage/knowledge-base/main/lists/docker-versions-stable.sh
source ${SENZING_DEMO_DIR}/docker-versions-stable.sh
curl -X GET \
--output ${SENZING_DEMO_DIR}/docker-compose.yaml \
"https://raw.githubusercontent.com/Senzing/docker-compose-demo/main/resources/postgresql/docker-compose-postgresql.yaml"
"https://raw.githubusercontent.com/senzing-garage/docker-compose-demo/main/resources/postgresql/docker-compose-postgresql.yaml"

cd ${SENZING_DEMO_DIR}
sudo --preserve-env docker-compose up
Expand All @@ -106,7 +106,7 @@ in testing the `g2-sdk-go-base` packages.
Example:

```console
export LOCAL_IP_ADDRESS=$(curl --silent https://raw.githubusercontent.com/Senzing/knowledge-base/main/gists/find-local-ip-address/find-local-ip-address.py | python3 -)
export LOCAL_IP_ADDRESS=$(curl --silent https://raw.githubusercontent.com/senzing-garage/knowledge-base/main/gists/find-local-ip-address/find-local-ip-address.py | python3 -)
export SENZING_TOOLS_DATABASE_URL=postgresql://postgres:postgres@${LOCAL_IP_ADDRESS}:5432/G2/?sslmode=disable

```
Expand Down
4 changes: 2 additions & 2 deletions g2config/g2config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import (
"time"
"unsafe"

g2configapi "github.com/senzing-garage/g2-sdk-go/g2config"
"github.com/senzing-garage/g2-sdk-go/g2error"
"github.com/senzing-garage/go-logging/logging"
"github.com/senzing-garage/go-observing/notifier"
"github.com/senzing-garage/go-observing/observer"
"github.com/senzing-garage/go-observing/subject"
g2configapi "github.com/senzing/g2-sdk-go/g2config"
"github.com/senzing/g2-sdk-go/g2error"
)

// ----------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions g2config/g2config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"testing"

truncator "github.com/aquilax/truncate"
"github.com/senzing-garage/g2-sdk-go/g2api"
g2configapi "github.com/senzing-garage/g2-sdk-go/g2config"
"github.com/senzing-garage/g2-sdk-go/g2error"
futil "github.com/senzing-garage/go-common/fileutil"
"github.com/senzing-garage/go-common/g2engineconfigurationjson"
"github.com/senzing-garage/go-logging/logging"
"github.com/senzing/g2-sdk-go/g2api"
g2configapi "github.com/senzing/g2-sdk-go/g2config"
"github.com/senzing/g2-sdk-go/g2error"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions g2configmgr/g2configmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import (
"time"
"unsafe"

g2configmgrapi "github.com/senzing-garage/g2-sdk-go/g2configmgr"
"github.com/senzing-garage/g2-sdk-go/g2error"
"github.com/senzing-garage/go-logging/logging"
"github.com/senzing-garage/go-observing/notifier"
"github.com/senzing-garage/go-observing/observer"
"github.com/senzing-garage/go-observing/subject"
g2configmgrapi "github.com/senzing/g2-sdk-go/g2configmgr"
"github.com/senzing/g2-sdk-go/g2error"
)

// ----------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion g2configmgr/g2configmgr_examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"context"
"fmt"

"github.com/senzing-garage/g2-sdk-go-base/g2config"
"github.com/senzing-garage/go-logging/logging"
"github.com/senzing/g2-sdk-go-base/g2config"
)

// ----------------------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions g2configmgr/g2configmgr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import (
"time"

truncator "github.com/aquilax/truncate"
"github.com/senzing-garage/g2-sdk-go-base/g2config"
"github.com/senzing-garage/g2-sdk-go/g2api"
g2configmgrapi "github.com/senzing-garage/g2-sdk-go/g2configmgr"
"github.com/senzing-garage/g2-sdk-go/g2error"
futil "github.com/senzing-garage/go-common/fileutil"
"github.com/senzing-garage/go-common/g2engineconfigurationjson"
"github.com/senzing-garage/go-common/truthset"
"github.com/senzing-garage/go-logging/logging"
"github.com/senzing/g2-sdk-go-base/g2config"
"github.com/senzing/g2-sdk-go/g2api"
g2configmgrapi "github.com/senzing/g2-sdk-go/g2configmgr"
"github.com/senzing/g2-sdk-go/g2error"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions g2diagnostic/g2diagnostic.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import (
"time"
"unsafe"

g2diagnosticapi "github.com/senzing-garage/g2-sdk-go/g2diagnostic"
"github.com/senzing-garage/g2-sdk-go/g2error"
"github.com/senzing-garage/go-logging/logging"
"github.com/senzing-garage/go-observing/notifier"
"github.com/senzing-garage/go-observing/observer"
"github.com/senzing-garage/go-observing/subject"
g2diagnosticapi "github.com/senzing/g2-sdk-go/g2diagnostic"
"github.com/senzing/g2-sdk-go/g2error"
)

// ----------------------------------------------------------------------------
Expand Down
12 changes: 6 additions & 6 deletions g2diagnostic/g2diagnostic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ import (
"time"

truncator "github.com/aquilax/truncate"
"github.com/senzing-garage/g2-sdk-go-base/g2config"
"github.com/senzing-garage/g2-sdk-go-base/g2configmgr"
"github.com/senzing-garage/g2-sdk-go-base/g2engine"
"github.com/senzing-garage/g2-sdk-go/g2api"
g2diagnosticapi "github.com/senzing-garage/g2-sdk-go/g2diagnostic"
"github.com/senzing-garage/g2-sdk-go/g2error"
futil "github.com/senzing-garage/go-common/fileutil"
"github.com/senzing-garage/go-common/g2engineconfigurationjson"
"github.com/senzing-garage/go-common/truthset"
"github.com/senzing-garage/go-logging/logging"
"github.com/senzing/g2-sdk-go-base/g2config"
"github.com/senzing/g2-sdk-go-base/g2configmgr"
"github.com/senzing/g2-sdk-go-base/g2engine"
"github.com/senzing/g2-sdk-go/g2api"
g2diagnosticapi "github.com/senzing/g2-sdk-go/g2diagnostic"
"github.com/senzing/g2-sdk-go/g2error"
"github.com/stretchr/testify/assert"
)

Expand Down
6 changes: 3 additions & 3 deletions g2engine/g2engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ import (
"time"
"unsafe"

"github.com/senzing-garage/g2-sdk-go/g2api"
g2engineapi "github.com/senzing-garage/g2-sdk-go/g2engine"
"github.com/senzing-garage/g2-sdk-go/g2error"
"github.com/senzing-garage/go-logging/logging"
"github.com/senzing-garage/go-observing/notifier"
"github.com/senzing-garage/go-observing/observer"
"github.com/senzing-garage/go-observing/subject"
"github.com/senzing/g2-sdk-go/g2api"
g2engineapi "github.com/senzing/g2-sdk-go/g2engine"
"github.com/senzing/g2-sdk-go/g2error"
)

// ----------------------------------------------------------------------------
Expand Down
10 changes: 5 additions & 5 deletions g2engine/g2engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ import (
"time"

truncator "github.com/aquilax/truncate"
"github.com/senzing-garage/g2-sdk-go-base/g2config"
"github.com/senzing-garage/g2-sdk-go-base/g2configmgr"
"github.com/senzing-garage/g2-sdk-go/g2api"
g2engineapi "github.com/senzing-garage/g2-sdk-go/g2engine"
"github.com/senzing-garage/g2-sdk-go/g2error"
futil "github.com/senzing-garage/go-common/fileutil"
"github.com/senzing-garage/go-common/g2engineconfigurationjson"
"github.com/senzing-garage/go-common/record"
"github.com/senzing-garage/go-common/testfixtures"
"github.com/senzing-garage/go-common/truthset"
"github.com/senzing-garage/go-logging/logging"
"github.com/senzing/g2-sdk-go-base/g2config"
"github.com/senzing/g2-sdk-go-base/g2configmgr"
"github.com/senzing/g2-sdk-go/g2api"
g2engineapi "github.com/senzing/g2-sdk-go/g2engine"
"github.com/senzing/g2-sdk-go/g2error"
"github.com/stretchr/testify/assert"
)

Expand Down
4 changes: 2 additions & 2 deletions g2product/g2product.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ import (
"time"
"unsafe"

"github.com/senzing-garage/g2-sdk-go/g2error"
g2productapi "github.com/senzing-garage/g2-sdk-go/g2product"
"github.com/senzing-garage/go-logging/logging"
"github.com/senzing-garage/go-observing/notifier"
"github.com/senzing-garage/go-observing/observer"
"github.com/senzing-garage/go-observing/subject"
"github.com/senzing/g2-sdk-go/g2error"
g2productapi "github.com/senzing/g2-sdk-go/g2product"
)

// ----------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions g2product/g2product_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"testing"

truncator "github.com/aquilax/truncate"
"github.com/senzing-garage/g2-sdk-go/g2api"
"github.com/senzing-garage/g2-sdk-go/g2error"
g2productapi "github.com/senzing-garage/g2-sdk-go/g2product"
futil "github.com/senzing-garage/go-common/fileutil"
"github.com/senzing-garage/go-common/g2engineconfigurationjson"
"github.com/senzing-garage/go-logging/logging"
"github.com/senzing/g2-sdk-go/g2api"
"github.com/senzing/g2-sdk-go/g2error"
g2productapi "github.com/senzing/g2-sdk-go/g2product"
"github.com/stretchr/testify/assert"
)

Expand Down
Loading

0 comments on commit db5bf3b

Please sign in to comment.