Skip to content

Commit a2ee1df

Browse files
authored
fix: stability and formatting (#63)
* feat: adding better error handling * feat: upgrading open telemetry and better error handling * feat: upgrading open telemetry and better error handling * feat: upgrading open telemetry and better error handling * chore(release): publish - project: go/oeco-sdk/v2beta 0.14.0 * feat: better distributed error handling * chore(release): publish - project: go/oeco-sdk/v2beta 0.15.0 * fix: formatting and linting --------- Co-authored-by: Dimy Jeannot <>
1 parent c5ff364 commit a2ee1df

File tree

911 files changed

+130278
-142451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

911 files changed

+130278
-142451
lines changed

.config/golangci/golangci-soft.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
run:
2-
tests: false
3-
issues-exit-code: 0
2+
tests: false
3+
issues-exit-code: 0
44

55
issues:
6-
include:
7-
- EXC0001
8-
- EXC0005
9-
- EXC0011
10-
- EXC0012
11-
- EXC0013
6+
include:
7+
- EXC0001
8+
- EXC0005
9+
- EXC0011
10+
- EXC0012
11+
- EXC0013
1212

13-
max-issues-per-linter: 0
14-
max-same-issues: 0
13+
max-issues-per-linter: 0
14+
max-same-issues: 0
1515

1616
linters:
17-
enable:
18-
- exhaustive
19-
- goconst
20-
- godot
21-
- godox
22-
- mnd
23-
- gomoddirectives
24-
- goprintffuncname
25-
- misspell
26-
- nakedret
27-
- nestif
28-
- noctx
29-
- nolintlint
30-
- prealloc
31-
- wrapcheck
17+
enable:
18+
- exhaustive
19+
- goconst
20+
- godot
21+
- godox
22+
- mnd
23+
- gomoddirectives
24+
- goprintffuncname
25+
- misspell
26+
- nakedret
27+
- nestif
28+
- noctx
29+
- nolintlint
30+
- prealloc
31+
- wrapcheck
3232

33-
# disable default linters, they are already enabled in .golangci.yml
34-
disable:
35-
- errcheck
36-
- gosimple
37-
- govet
38-
- ineffassign
39-
- staticcheck
40-
- unused
33+
# disable default linters, they are already enabled in .golangci.yml
34+
disable:
35+
- errcheck
36+
- gosimple
37+
- govet
38+
- ineffassign
39+
- staticcheck
40+
- unused

.config/golangci/golangci.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
run:
2-
tests: false
2+
tests: false
33

44
issues:
5-
include:
6-
- EXC0001
7-
- EXC0005
8-
- EXC0011
9-
- EXC0012
10-
- EXC0013
5+
include:
6+
- EXC0001
7+
- EXC0005
8+
- EXC0011
9+
- EXC0012
10+
- EXC0013
1111

12-
max-issues-per-linter: 0
13-
max-same-issues: 0
12+
max-issues-per-linter: 0
13+
max-same-issues: 0
1414

1515
linters:
16-
enable:
17-
- bodyclose
18-
- gofumpt
19-
- goimports
20-
- gosec
21-
- nilerr
22-
- revive
23-
- rowserrcheck
24-
- sqlclosecheck
25-
- tparallel
26-
- unconvert
27-
- unparam
28-
- whitespace
16+
enable:
17+
- bodyclose
18+
- gofumpt
19+
- goimports
20+
- gosec
21+
- nilerr
22+
- revive
23+
- rowserrcheck
24+
- sqlclosecheck
25+
- tparallel
26+
- unconvert
27+
- unparam
28+
- whitespace

.config/goreleaser/dockerize.yaml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
22
version: 2
33
variables:
4-
project_name: ""
4+
project_name: ''
55
kos:
6-
- repositories:
7-
- ghcr.io/openecosystems/{{ .Var.project_name }}
8-
#- openecosystems/{{ .Var.project_name }}
9-
tags:
10-
- "{{.Version}}"
11-
- "{{.Tag}}"
12-
- latest
13-
- "{{if not .Prerelease}}stable{{end}}"
14-
bare: true
15-
preserve_import_paths: false
16-
platforms:
17-
- linux/amd64
18-
- linux/arm64
19-
- darwin/amd64
20-
- darwin/arm64
21-
- windows/amd64
22-
- windows/arm64
23-
24-
6+
- repositories:
7+
- ghcr.io/openecosystems/{{ .Var.project_name }}
8+
#- openecosystems/{{ .Var.project_name }}
9+
tags:
10+
- '{{.Version}}'
11+
- '{{.Tag}}'
12+
- latest
13+
- '{{if not .Prerelease}}stable{{end}}'
14+
bare: true
15+
preserve_import_paths: false
16+
platforms:
17+
- linux/amd64
18+
- linux/arm64
19+
- darwin/amd64
20+
- darwin/arm64
21+
- windows/amd64
22+
- windows/arm64
2523
#dockers:
2624
# - image_templates: [ "openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64" ]
2725
# dockerfile: Dockerfile
Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
version: 2
22
project_name: cicd-image
33
builds:
4-
- skip: true
4+
- skip: true
55
dockers:
6-
- image_templates: ["ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64"]
7-
dockerfile: Dockerfile
8-
use: buildx
9-
build_flag_templates:
10-
- --platform=linux/amd64
11-
- --label=org.opencontainers.image.title={{ .ProjectName }}
12-
- --label=org.opencontainers.image.description={{ .ProjectName }}
13-
- --label=org.opencontainers.image.url=https://github.com/openecosystems/{{ .ProjectName }}
14-
- --label=org.opencontainers.image.source=https://github.com/openecosystems/{{ .ProjectName }}
15-
- --label=org.opencontainers.image.version={{ .Version }}
16-
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
17-
- --label=org.opencontainers.image.revision={{ .FullCommit }}
18-
- --label=org.opencontainers.image.licenses=Apache-2.0
19-
- image_templates: ["ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-arm64v8"]
20-
goarch: arm64
21-
dockerfile: Dockerfile
22-
use: buildx
23-
build_flag_templates:
24-
- --platform=linux/arm64/v8
25-
- --label=org.opencontainers.image.title={{ .ProjectName }}
26-
- --label=org.opencontainers.image.description={{ .ProjectName }}
27-
- --label=org.opencontainers.image.url=https://github.com/openecosystems/{{ .ProjectName }}
28-
- --label=org.opencontainers.image.source=https://github.com/openecosystems/{{ .ProjectName }}
29-
- --label=org.opencontainers.image.version={{ .Version }}
30-
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
31-
- --label=org.opencontainers.image.revision={{ .FullCommit }}
32-
- --label=org.opencontainers.image.licenses=Apache-2.0
6+
- image_templates: ['ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64']
7+
dockerfile: Dockerfile
8+
use: buildx
9+
build_flag_templates:
10+
- --platform=linux/amd64
11+
- --label=org.opencontainers.image.title={{ .ProjectName }}
12+
- --label=org.opencontainers.image.description={{ .ProjectName }}
13+
- --label=org.opencontainers.image.url=https://github.com/openecosystems/{{ .ProjectName }}
14+
- --label=org.opencontainers.image.source=https://github.com/openecosystems/{{ .ProjectName }}
15+
- --label=org.opencontainers.image.version={{ .Version }}
16+
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
17+
- --label=org.opencontainers.image.revision={{ .FullCommit }}
18+
- --label=org.opencontainers.image.licenses=Apache-2.0
19+
- image_templates: ['ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-arm64v8']
20+
goarch: arm64
21+
dockerfile: Dockerfile
22+
use: buildx
23+
build_flag_templates:
24+
- --platform=linux/arm64/v8
25+
- --label=org.opencontainers.image.title={{ .ProjectName }}
26+
- --label=org.opencontainers.image.description={{ .ProjectName }}
27+
- --label=org.opencontainers.image.url=https://github.com/openecosystems/{{ .ProjectName }}
28+
- --label=org.opencontainers.image.source=https://github.com/openecosystems/{{ .ProjectName }}
29+
- --label=org.opencontainers.image.version={{ .Version }}
30+
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
31+
- --label=org.opencontainers.image.revision={{ .FullCommit }}
32+
- --label=org.opencontainers.image.licenses=Apache-2.0
3333
docker_manifests:
34-
- name_template: ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}
35-
image_templates:
36-
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64
37-
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-arm64v8
38-
- name_template: ghcr.io/openecosystems/{{ .ProjectName }}:latest
39-
image_templates:
40-
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64
41-
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-arm64v8
34+
- name_template: ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}
35+
image_templates:
36+
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64
37+
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-arm64v8
38+
- name_template: ghcr.io/openecosystems/{{ .ProjectName }}:latest
39+
image_templates:
40+
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64
41+
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-arm64v8

.config/goreleaser/goreleaser.cli.yaml

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -2,79 +2,79 @@
22

33
version: 2
44
variables:
5-
main: ""
6-
binary_name: ""
7-
description: ""
8-
maintainer: ""
9-
homepage: "https://www.openecosystems.com"
10-
brew_commit_author_name: ""
11-
brew_commit_author_email: ""
12-
brew_owner: openecosystems
13-
docker_io_registry_owner: openecosystems
14-
ghcr_io_registry_owner: openecosystems
15-
aur_project_name: ""
16-
path_to_repo_root: ""
17-
path_to_project: ""
18-
nightly_tag_name: ""
5+
main: ''
6+
binary_name: ''
7+
description: ''
8+
maintainer: ''
9+
homepage: 'https://www.openecosystems.com'
10+
brew_commit_author_name: ''
11+
brew_commit_author_email: ''
12+
brew_owner: openecosystems
13+
docker_io_registry_owner: openecosystems
14+
ghcr_io_registry_owner: openecosystems
15+
aur_project_name: ''
16+
path_to_repo_root: ''
17+
path_to_project: ''
18+
nightly_tag_name: ''
1919

2020
builds:
21-
- env:
22-
- CGO_ENABLED=0
23-
no_main_check: true
24-
goos:
25-
- linux
26-
- windows
27-
- darwin
28-
goarch:
29-
- amd64
30-
- arm64
31-
goarm:
32-
- "7"
33-
ignore:
34-
- goos: windows
35-
goarch: arm64
36-
- goos: windows
37-
goarm: "7"
21+
- env:
22+
- CGO_ENABLED=0
23+
no_main_check: true
24+
goos:
25+
- linux
26+
- windows
27+
- darwin
28+
goarch:
29+
- amd64
30+
- arm64
31+
goarm:
32+
- '7'
33+
ignore:
34+
- goos: windows
35+
goarch: arm64
36+
- goos: windows
37+
goarm: '7'
3838

3939
archives:
40-
- format_overrides:
41-
- goos: windows
42-
format: zip
43-
name_template: >-
44-
{{ .ProjectName }}_
45-
{{- .Version }}_
46-
{{- title .Os }}_
47-
{{- if eq .Arch "amd64" }}x86_64
48-
{{- else if eq .Arch "386" }}i386
49-
{{- else }}{{ .Arch }}{{ end }}
50-
wrap_in_directory: true
51-
files:
52-
- README*
53-
- "{{ .Var.path_to_repo_root }}LICENSE*"
54-
- completions/*
40+
- format_overrides:
41+
- goos: windows
42+
format: zip
43+
name_template: >-
44+
{{ .ProjectName }}_
45+
{{- .Version }}_
46+
{{- title .Os }}_
47+
{{- if eq .Arch "amd64" }}x86_64
48+
{{- else if eq .Arch "386" }}i386
49+
{{- else }}{{ .Arch }}{{ end }}
50+
wrap_in_directory: true
51+
files:
52+
- README*
53+
- '{{ .Var.path_to_repo_root }}LICENSE*'
54+
- completions/*
5555

5656
brews:
57-
- repository:
58-
owner: "{{ .Var.brew_owner }}"
59-
name: homebrew-tap
60-
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
61-
commit_author:
62-
name: "{{ .Var.brew_commit_author_name }}"
63-
email: "{{ .Var.brew_commit_author_email }}"
64-
homepage: "{{ .Var.homepage }}"
65-
description: "{{ .Var.description }}"
66-
# dependencies:
67-
# - name: ffmpeg
68-
# - name: ttyd
69-
install: |-
70-
bin.install "{{ with .Var.binary_name }}{{ . }}{{ else }}{{ .ProjectName }}{{ end }}"
71-
bash_completion.install "completions/{{ .ProjectName }}.bash" => "{{ .ProjectName }}"
72-
zsh_completion.install "completions/{{ .ProjectName }}.zsh" => "_{{ .ProjectName }}"
73-
fish_completion.install "completions/{{ .ProjectName }}.fish"
57+
- repository:
58+
owner: '{{ .Var.brew_owner }}'
59+
name: homebrew-tap
60+
token: '{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}'
61+
commit_author:
62+
name: '{{ .Var.brew_commit_author_name }}'
63+
email: '{{ .Var.brew_commit_author_email }}'
64+
homepage: '{{ .Var.homepage }}'
65+
description: '{{ .Var.description }}'
66+
# dependencies:
67+
# - name: ffmpeg
68+
# - name: ttyd
69+
install: |-
70+
bin.install "{{ with .Var.binary_name }}{{ . }}{{ else }}{{ .ProjectName }}{{ end }}"
71+
bash_completion.install "completions/{{ .ProjectName }}.bash" => "{{ .ProjectName }}"
72+
zsh_completion.install "completions/{{ .ProjectName }}.zsh" => "_{{ .ProjectName }}"
73+
fish_completion.install "completions/{{ .ProjectName }}.fish"
7474
7575
changelog:
76-
sort: asc
77-
filters:
78-
exclude:
79-
- "^docs:"
80-
- "^test:"
76+
sort: asc
77+
filters:
78+
exclude:
79+
- '^docs:'
80+
- '^test:'

0 commit comments

Comments
 (0)