Skip to content

Commit

Permalink
Update go mod path
Browse files Browse the repository at this point in the history
  • Loading branch information
Tzvonimir committed Nov 10, 2024
1 parent 8a8e510 commit 038f2b7
Show file tree
Hide file tree
Showing 25 changed files with 65 additions and 67 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
![The devzero logo](https://console.devzero.io/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Ffull_logo.379052d8.png&w=1080&q=75)

![Workflow Status](https://img.shields.io/github/actions/workflow/status/devzero-inc/local-developer-analytics/go.yaml)
![License](https://img.shields.io/github/license/devzero-inc/local-developer-analytics)
![Version](https://img.shields.io/github/v/tag/devzero-inc/local-developer-analytics)
![Workflow Status](https://img.shields.io/github/actions/workflow/status/devzero-inc/oda/go.yaml)
![License](https://img.shields.io/github/license/devzero-inc/oda)
![Version](https://img.shields.io/github/v/tag/devzero-inc/oda)

# ODA

Expand All @@ -28,7 +28,7 @@ brew install <>
You can install `oda` using `wget`:

```sh
wget https://github.com/devzero-inc/local-developer-analytics/releases/download/<version>/oda-<os>-<arch>.zip
wget https://github.com/devzero-inc/oda/releases/download/<version>/oda-<os>-<arch>.zip
unzip oda-<os>-<arch>.zip
mv oda /usr/local/bin
```
Expand Down Expand Up @@ -67,4 +67,4 @@ For updates on the ODA CLI, [follow this repo on GitHub][repo].

For information on contributing to this project, please see the [contributing guidelines](CONTRIBUTING.md).

[repo]: https://github.com/devzero-inc/local-developer-analytics
[repo]: https://github.com/devzero-inc/oda
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"time"

gen "github.com/devzero-inc/local-developer-analytics/gen/api/v1"
"github.com/devzero-inc/local-developer-analytics/logging"
gen "github.com/devzero-inc/oda/gen/api/v1"
"github.com/devzero-inc/oda/logging"

"github.com/rs/zerolog"
"google.golang.org/grpc"
Expand Down
18 changes: 9 additions & 9 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import (
"os"
"strings"

"github.com/devzero-inc/local-developer-analytics/config"
"github.com/devzero-inc/local-developer-analytics/daemon"
"github.com/devzero-inc/local-developer-analytics/database"
"github.com/devzero-inc/local-developer-analytics/job"
"github.com/devzero-inc/local-developer-analytics/logging"
"github.com/devzero-inc/local-developer-analytics/resources"
"github.com/devzero-inc/local-developer-analytics/shell"
"github.com/devzero-inc/local-developer-analytics/user"
"github.com/devzero-inc/local-developer-analytics/util"
"github.com/devzero-inc/oda/config"
"github.com/devzero-inc/oda/daemon"
"github.com/devzero-inc/oda/database"
"github.com/devzero-inc/oda/job"
"github.com/devzero-inc/oda/logging"
"github.com/devzero-inc/oda/resources"
"github.com/devzero-inc/oda/shell"
"github.com/devzero-inc/oda/user"
"github.com/devzero-inc/oda/util"

"github.com/pkg/errors"
"github.com/spf13/cobra"
Expand Down
12 changes: 6 additions & 6 deletions cmd/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package cmd
import (
"time"

"github.com/devzero-inc/local-developer-analytics/client"
"github.com/devzero-inc/local-developer-analytics/collector"
"github.com/devzero-inc/local-developer-analytics/config"
"github.com/devzero-inc/local-developer-analytics/logging"
"github.com/devzero-inc/local-developer-analytics/process"
"github.com/devzero-inc/local-developer-analytics/user"
"github.com/devzero-inc/oda/client"
"github.com/devzero-inc/oda/collector"
"github.com/devzero-inc/oda/config"
"github.com/devzero-inc/oda/logging"
"github.com/devzero-inc/oda/process"
"github.com/devzero-inc/oda/user"

"github.com/pkg/errors"

Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"fmt"

"github.com/devzero-inc/local-developer-analytics/config"
"github.com/devzero-inc/oda/config"

"github.com/spf13/cobra"
)
Expand Down
8 changes: 4 additions & 4 deletions collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"strings"
"sync"

"github.com/devzero-inc/local-developer-analytics/client"
gen "github.com/devzero-inc/local-developer-analytics/gen/api/v1"
"github.com/devzero-inc/local-developer-analytics/process"
"github.com/devzero-inc/local-developer-analytics/util"
"github.com/devzero-inc/oda/client"
gen "github.com/devzero-inc/oda/gen/api/v1"
"github.com/devzero-inc/oda/process"
"github.com/devzero-inc/oda/util"

"github.com/rs/zerolog"

Expand Down
8 changes: 4 additions & 4 deletions collector/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"regexp"
"time"

"github.com/devzero-inc/local-developer-analytics/config"
"github.com/devzero-inc/local-developer-analytics/database"
gen "github.com/devzero-inc/local-developer-analytics/gen/api/v1"
"github.com/devzero-inc/local-developer-analytics/logging"
"github.com/devzero-inc/oda/config"
"github.com/devzero-inc/oda/database"
gen "github.com/devzero-inc/oda/gen/api/v1"
"github.com/devzero-inc/oda/logging"
)

// Command is the model for command
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os/user"
"path/filepath"

"github.com/devzero-inc/local-developer-analytics/util"
"github.com/devzero-inc/oda/util"

"github.com/pkg/errors"

Expand Down
2 changes: 1 addition & 1 deletion config/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path/filepath"
"runtime"

"github.com/devzero-inc/local-developer-analytics/util"
"github.com/devzero-inc/oda/util"

"github.com/manifoldco/promptui"
)
Expand Down
4 changes: 2 additions & 2 deletions daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"path/filepath"
"strings"

"github.com/devzero-inc/local-developer-analytics/config"
"github.com/devzero-inc/local-developer-analytics/util"
"github.com/devzero-inc/oda/config"
"github.com/devzero-inc/oda/util"

"github.com/spf13/afero"

Expand Down
4 changes: 2 additions & 2 deletions database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"os/user"
"path/filepath"

"github.com/devzero-inc/local-developer-analytics/config"
"github.com/devzero-inc/local-developer-analytics/util"
"github.com/devzero-inc/oda/config"
"github.com/devzero-inc/oda/util"

"github.com/jmoiron/sqlx"
_ "modernc.org/sqlite"
Expand Down
2 changes: 1 addition & 1 deletion database/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/devzero-inc/local-developer-analytics/config"
"github.com/devzero-inc/oda/config"
)

// RunMigrations all additional migrations should be registered here
Expand Down
10 changes: 4 additions & 6 deletions gen/api/v1/collector.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/api/v1/genconnect/collector.connect.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/devzero-inc/local-developer-analytics
module github.com/devzero-inc/oda

go 1.21.4

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ else
fi

# Download, unzip, and move binary in one go
$downloader https://github.com/devzero-inc/local-developer-analytics/releases/download/$ODA_VERSION/oda-$OS-$ARCH.tar.gz && \
$downloader https://github.com/devzero-inc/oda/releases/download/$ODA_VERSION/oda-$OS-$ARCH.tar.gz && \
tar -xvf oda-$OS-$ARCH.tar.gz && \
sudo mv oda /usr/local/bin/oda && \
rm oda-$OS-$ARCH.tar.gz
4 changes: 2 additions & 2 deletions job/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package job
import (
"time"

"github.com/devzero-inc/local-developer-analytics/collector"
"github.com/devzero-inc/local-developer-analytics/process"
"github.com/devzero-inc/oda/collector"
"github.com/devzero-inc/oda/process"
)

// Cleanup job that will run in background and every 'hours' try to run the ticker
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/devzero-inc/local-developer-analytics/cmd"
"github.com/devzero-inc/oda/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"time"

"github.com/devzero-inc/local-developer-analytics/database"
gen "github.com/devzero-inc/local-developer-analytics/gen/api/v1"
"github.com/devzero-inc/oda/database"
gen "github.com/devzero-inc/oda/gen/api/v1"

"github.com/rs/zerolog"
)
Expand Down
2 changes: 1 addition & 1 deletion proto/api/v1/collector.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package api.v1;

import "google/protobuf/empty.proto";

option go_package = "github.com/devzero-inc/local-developer-analytics/gen/api/v1;gen";
option go_package = "github.com/devzero-inc/oda/gen/api/v1;gen";
option java_multiple_files = true;
option java_package = "gen.api.v1";

Expand Down
4 changes: 2 additions & 2 deletions resources/charts.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"fmt"
"math"

"github.com/devzero-inc/local-developer-analytics/collector"
"github.com/devzero-inc/local-developer-analytics/process"
"github.com/devzero-inc/oda/collector"
"github.com/devzero-inc/oda/process"
)

// ChartData represents the overall structure for a Chart.js chart configuration.
Expand Down
6 changes: 3 additions & 3 deletions resources/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"text/template"
"time"

"github.com/devzero-inc/local-developer-analytics/collector"
"github.com/devzero-inc/local-developer-analytics/logging"
"github.com/devzero-inc/local-developer-analytics/process"
"github.com/devzero-inc/oda/collector"
"github.com/devzero-inc/oda/logging"
"github.com/devzero-inc/oda/process"
)

// Embedding directory
Expand Down
6 changes: 3 additions & 3 deletions shell/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"strings"
"text/template"

"github.com/devzero-inc/local-developer-analytics/collector"
"github.com/devzero-inc/local-developer-analytics/config"
"github.com/devzero-inc/local-developer-analytics/util"
"github.com/devzero-inc/oda/collector"
"github.com/devzero-inc/oda/config"
"github.com/devzero-inc/oda/util"

"github.com/manifoldco/promptui"
"github.com/rs/zerolog"
Expand Down
10 changes: 5 additions & 5 deletions user/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"path/filepath"
"strings"

"github.com/devzero-inc/local-developer-analytics/collector"
"github.com/devzero-inc/local-developer-analytics/config"
"github.com/devzero-inc/local-developer-analytics/database"
"github.com/devzero-inc/local-developer-analytics/logging"
"github.com/devzero-inc/local-developer-analytics/util"
"github.com/devzero-inc/oda/collector"
"github.com/devzero-inc/oda/config"
"github.com/devzero-inc/oda/database"
"github.com/devzero-inc/oda/logging"
"github.com/devzero-inc/oda/util"
jwtlib "github.com/golang-jwt/jwt/v4"

"github.com/golang-jwt/jwt/v4"
Expand Down
2 changes: 1 addition & 1 deletion util/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strconv"
"strings"

"github.com/devzero-inc/local-developer-analytics/logging"
"github.com/devzero-inc/oda/logging"
)

// FileExists checks if a file exists or not
Expand Down

0 comments on commit 038f2b7

Please sign in to comment.