Skip to content

Commit

Permalink
Merge pull request #133 from kouprlabs/chore/fix-module-names
Browse files Browse the repository at this point in the history
feat: make all packages unique and resolvable
  • Loading branch information
dsonck92 authored Jul 9, 2024
2 parents 433db94 + 3e03c21 commit 6cd9ff9
Show file tree
Hide file tree
Showing 121 changed files with 701 additions and 380 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 Anass Bouassaba.
# Copyright 2023 Anass Bouassaba, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 Anass Bouassaba.
# Copyright 2023 Anass Bouassaba, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 Anass Bouassaba.
# Copyright 2023 Anass Bouassaba, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 Anass Bouassaba.
# Copyright 2023 Anass Bouassaba, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 Anass Bouassaba.
# Copyright 2023 Anass Bouassaba, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 Anass Bouassaba.
# Copyright 2023 Anass Bouassaba, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 Anass Bouassaba.
# Copyright 2023 Anass Bouassaba, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/lint-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2023 Daniël Sonck, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the GNU Affero General Public License v3.0 only, included in the file
# licenses/AGPL.txt.

name: Lint voltaserve/api

on:
pull_request:
branches:
- main
paths:
- "api/**"

jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Lint using Golanci lint
uses: golangci/golangci-lint-action@v6
with:
working-directory: api
permissions:
contents: read
pull-requests: read
checks: write
34 changes: 34 additions & 0 deletions .github/workflows/lint-conversion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2023 Daniël Sonck, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the GNU Affero General Public License v3.0 only, included in the file
# licenses/AGPL.txt.

name: Lint voltaserve/conversion

on:
pull_request:
branches:
- main
paths:
- "conversion/**"

jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Lint using Golanci lint
uses: golangci/golangci-lint-action@v6
with:
working-directory: conversion
permissions:
contents: read
pull-requests: read
checks: write
34 changes: 34 additions & 0 deletions .github/workflows/lint-idp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2023 Daniël Sonck, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the GNU Affero General Public License v3.0 only, included in the file
# licenses/AGPL.txt.

name: Lint voltaserve/idp

on:
pull_request:
branches:
- main
paths:
- "idp/**"

jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Lint using Golanci lint
uses: golangci/golangci-lint-action@v6
with:
working-directory: idp
permissions:
contents: read
pull-requests: read
checks: write
34 changes: 34 additions & 0 deletions .github/workflows/lint-language.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2023 Daniël Sonck, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the GNU Affero General Public License v3.0 only, included in the file
# licenses/AGPL.txt.

name: Lint voltaserve/language

on:
pull_request:
branches:
- main
paths:
- "language/**"

jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Lint using Golanci lint
uses: golangci/golangci-lint-action@v6
with:
working-directory: language
permissions:
contents: read
pull-requests: read
checks: write
34 changes: 34 additions & 0 deletions .github/workflows/lint-mosaic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2023 Daniël Sonck, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the GNU Affero General Public License v3.0 only, included in the file
# licenses/AGPL.txt.

name: Lint voltaserve/mosaic

on:
pull_request:
branches:
- main
paths:
- "mosaic/**"

jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Lint using Golanci lint
uses: golangci/golangci-lint-action@v6
with:
working-directory: mosaic
permissions:
contents: read
pull-requests: read
checks: write
34 changes: 34 additions & 0 deletions .github/workflows/lint-ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2023 Daniël Sonck, Piotr Łoboda.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.txt.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the GNU Affero General Public License v3.0 only, included in the file
# licenses/AGPL.txt.

name: Lint voltaserve/ui

on:
pull_request:
branches:
- main
paths:
- "ui/**"

jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Lint using Golanci lint
uses: golangci/golangci-lint-action@v6
with:
working-directory: ui
permissions:
contents: read
pull-requests: read
checks: write
7 changes: 4 additions & 3 deletions api/cache/file_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ package cache

import (
"encoding/json"
"voltaserve/infra"
"voltaserve/model"
"voltaserve/repo"

"github.com/kouprlabs/voltaserve/api/infra"
"github.com/kouprlabs/voltaserve/api/model"
"github.com/kouprlabs/voltaserve/api/repo"
)

type FileCache struct {
Expand Down
7 changes: 4 additions & 3 deletions api/cache/group_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ package cache

import (
"encoding/json"
"voltaserve/infra"
"voltaserve/model"
"voltaserve/repo"

"github.com/kouprlabs/voltaserve/api/infra"
"github.com/kouprlabs/voltaserve/api/model"
"github.com/kouprlabs/voltaserve/api/repo"
)

type GroupCache struct {
Expand Down
7 changes: 4 additions & 3 deletions api/cache/organization_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ package cache

import (
"encoding/json"
"voltaserve/infra"
"voltaserve/model"
"voltaserve/repo"

"github.com/kouprlabs/voltaserve/api/infra"
"github.com/kouprlabs/voltaserve/api/model"
"github.com/kouprlabs/voltaserve/api/repo"
)

type OrganizationCache struct {
Expand Down
7 changes: 4 additions & 3 deletions api/cache/snapshot_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ package cache

import (
"encoding/json"
"voltaserve/infra"
"voltaserve/model"
"voltaserve/repo"

"github.com/kouprlabs/voltaserve/api/infra"
"github.com/kouprlabs/voltaserve/api/model"
"github.com/kouprlabs/voltaserve/api/repo"
)

type SnapshotCache struct {
Expand Down
7 changes: 4 additions & 3 deletions api/cache/task_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ package cache

import (
"encoding/json"
"voltaserve/infra"
"voltaserve/model"
"voltaserve/repo"

"github.com/kouprlabs/voltaserve/api/infra"
"github.com/kouprlabs/voltaserve/api/model"
"github.com/kouprlabs/voltaserve/api/repo"
)

type TaskCache struct {
Expand Down
7 changes: 4 additions & 3 deletions api/cache/workspace_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ package cache

import (
"encoding/json"
"voltaserve/infra"
"voltaserve/model"
"voltaserve/repo"

"github.com/kouprlabs/voltaserve/api/infra"
"github.com/kouprlabs/voltaserve/api/model"
"github.com/kouprlabs/voltaserve/api/repo"
)

type WorkspaceCache struct {
Expand Down
5 changes: 3 additions & 2 deletions api/client/language_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ import (
"fmt"
"io"
"net/http"
"voltaserve/config"
"voltaserve/log"

"github.com/kouprlabs/voltaserve/api/config"
"github.com/kouprlabs/voltaserve/api/log"
)

type LanguageClient struct {
Expand Down
7 changes: 4 additions & 3 deletions api/client/mosaic_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ import (
"mime/multipart"
"net/http"
"os"
"voltaserve/config"
"voltaserve/errorpkg"
"voltaserve/log"

"github.com/kouprlabs/voltaserve/api/config"
"github.com/kouprlabs/voltaserve/api/errorpkg"
"github.com/kouprlabs/voltaserve/api/log"
)

type MosaicClient struct {
Expand Down
3 changes: 2 additions & 1 deletion api/client/pipeline_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import (
"encoding/json"
"fmt"
"net/http"
"voltaserve/config"

"github.com/kouprlabs/voltaserve/api/config"
)

type PipelineClient struct {
Expand Down
5 changes: 3 additions & 2 deletions api/client/watermark_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ import (
"mime/multipart"
"net/http"
"os"
"voltaserve/config"
"voltaserve/log"

"github.com/kouprlabs/voltaserve/api/config"
"github.com/kouprlabs/voltaserve/api/log"
)

type WatermarkClient struct {
Expand Down
3 changes: 2 additions & 1 deletion api/errorpkg/error_creators.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import (
"fmt"
"net/http"
"strings"
"voltaserve/model"

"github.com/kouprlabs/voltaserve/api/model"

"github.com/go-playground/validator/v10"
)
Expand Down
Loading

0 comments on commit 6cd9ff9

Please sign in to comment.