Skip to content

feat: migrate to uptime-industries gh org #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ dockers:
- agent
- bladectl
image_templates:
- ghcr.io/uptime-lab/computeblade-agent:latest
- ghcr.io/uptime-lab/computeblade-agent:{{ .Tag }}
- ghcr.io/uptime-lab/computeblade-agent:v{{ .Major }}
- ghcr.io/github.com/uptime-induestries/compute-blade-agent:latest
- ghcr.io/github.com/uptime-induestries/compute-blade-agent:{{ .Tag }}
- ghcr.io/github.com/uptime-induestries/compute-blade-agent:v{{ .Major }}
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
Expand Down Expand Up @@ -69,7 +69,7 @@ nfpms:
- id: computeblade-agent
maintainer: Matthias Riegler <me@xvzf.tech>
description: Computeblade Agent
homepage: https://github.com/uptime-lab/computeblade-agent
homepage: https://github.com/github.com/uptime-induestries/compute-blade-agent
license: Apache 2.0
formats:
- deb
Expand Down
26 changes: 13 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# Changelog

## [0.5.0](https://github.com/Uptime-Lab/computeblade-agent/compare/v0.4.1...v0.5.0) (2023-11-25)
## [0.5.0](https://github.com/github.com/uptime-induestries/compute-blade-agent/compare/v0.4.1...v0.5.0) (2023-11-25)


### Features

* add smart fan unit support ([#29](https://github.com/Uptime-Lab/computeblade-agent/issues/29)) ([9992037](https://github.com/Uptime-Lab/computeblade-agent/commit/99920370fba8176dc34243d28281aa343f437fc5))
* add smart fan unit support ([#29](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/29)) ([9992037](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/99920370fba8176dc34243d28281aa343f437fc5))


### Bug Fixes

* smart fan unit improvements ([#31](https://github.com/Uptime-Lab/computeblade-agent/issues/31)) ([a8d470d](https://github.com/Uptime-Lab/computeblade-agent/commit/a8d470d4f9ec2749e1067474805f67639cd24c09))
* smart fan unit improvements ([#31](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/31)) ([a8d470d](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/a8d470d4f9ec2749e1067474805f67639cd24c09))

## [0.4.1](https://github.com/Uptime-Lab/computeblade-agent/compare/v0.4.0...v0.4.1) (2023-10-05)
## [0.4.1](https://github.com/github.com/uptime-induestries/compute-blade-agent/compare/v0.4.0...v0.4.1) (2023-10-05)


### Bug Fixes

* ${ -&gt; ${{ ... ([#27](https://github.com/Uptime-Lab/computeblade-agent/issues/27)) ([f2cd029](https://github.com/Uptime-Lab/computeblade-agent/commit/f2cd029d83329085354acb7ed68da390dfe9aee4))
* add debug statement ([#25](https://github.com/Uptime-Lab/computeblade-agent/issues/25)) ([21d9942](https://github.com/Uptime-Lab/computeblade-agent/commit/21d99426293b724f53f0de594fce21e5c49724f8))
* debug statement ([#26](https://github.com/Uptime-Lab/computeblade-agent/issues/26)) ([780455e](https://github.com/Uptime-Lab/computeblade-agent/commit/780455e749a6acd896ce862ac565f1d1f5467c20))
* if statement? ([#23](https://github.com/Uptime-Lab/computeblade-agent/issues/23)) ([4691e2b](https://github.com/Uptime-Lab/computeblade-agent/commit/4691e2b3d71b9c28ebbed31b564c5356713b91f9))
* rename release-please -&gt; release workflow ([#28](https://github.com/Uptime-Lab/computeblade-agent/issues/28)) ([e86b221](https://github.com/Uptime-Lab/computeblade-agent/commit/e86b221aa886f11d6303521787ca4c755b114a6e))
* ${ -&gt; ${{ ... ([#27](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/27)) ([f2cd029](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/f2cd029d83329085354acb7ed68da390dfe9aee4))
* add debug statement ([#25](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/25)) ([21d9942](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/21d99426293b724f53f0de594fce21e5c49724f8))
* debug statement ([#26](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/26)) ([780455e](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/780455e749a6acd896ce862ac565f1d1f5467c20))
* if statement? ([#23](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/23)) ([4691e2b](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/4691e2b3d71b9c28ebbed31b564c5356713b91f9))
* rename release-please -&gt; release workflow ([#28](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/28)) ([e86b221](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/e86b221aa886f11d6303521787ca4c755b114a6e))

## [0.4.0](https://github.com/Uptime-Lab/computeblade-agent/compare/v0.3.4...v0.4.0) (2023-10-05)
## [0.4.0](https://github.com/github.com/uptime-induestries/compute-blade-agent/compare/v0.3.4...v0.4.0) (2023-10-05)


### Features

* switch to release-please ([#19](https://github.com/Uptime-Lab/computeblade-agent/issues/19)) ([33dd6e5](https://github.com/Uptime-Lab/computeblade-agent/commit/33dd6e5adf45d2b59c1af061c7e78c9426329f15))
* switch to release-please ([#19](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/19)) ([33dd6e5](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/33dd6e5adf45d2b59c1af061c7e78c9426329f15))


### Bug Fixes

* explicitly check for true before running goreleaser ([#21](https://github.com/Uptime-Lab/computeblade-agent/issues/21)) ([9c82b60](https://github.com/Uptime-Lab/computeblade-agent/commit/9c82b60fd88718ad90a9a0aa774ffc4bcdd18d3f))
* if condition ([#22](https://github.com/Uptime-Lab/computeblade-agent/issues/22)) ([cee6912](https://github.com/Uptime-Lab/computeblade-agent/commit/cee6912f5768a310c2758c8755b9ed1985b10d23))
* explicitly check for true before running goreleaser ([#21](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/21)) ([9c82b60](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/9c82b60fd88718ad90a9a0aa774ffc4bcdd18d3f))
* if condition ([#22](https://github.com/github.com/uptime-induestries/compute-blade-agent/issues/22)) ([cee6912](https://github.com/github.com/uptime-induestries/compute-blade-agent/commit/cee6912f5768a310c2758c8755b9ed1985b10d23))
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM cgr.dev/chainguard/wolfi-base
LABEL org.opencontainers.image.source https://github.com/uptime-lab/computeblade-agent
LABEL org.opencontainers.image.source https://github.com/github.com/uptime-induestries/compute-blade-agent

# Copy binaries generated by goreleaser
COPY computeblade-agent bladectl /bin
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The `computeblade-agent` serves as an operating system agent interfacing with [C

**Quick Setup with TL;DR**:
```bash
curl -L -o /tmp/computeblade-agent-installer.sh https://raw.githubusercontent.com/Uptime-Lab/computeblade-agent/main/hack/autoinstall.sh
curl -L -o /tmp/computeblade-agent-installer.sh https://raw.githubusercontent.com/github.com/uptime-induestries/compute-blade-agent/main/hack/autoinstall.sh
chmod +x /tmp/computeblade-agent-installer.sh
/tmp/computeblade-agent-installer.sh
```
Expand Down
2 changes: 1 addition & 1 deletion api/bladeapi/v1alpha1/blade.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ syntax = "proto4";
import "google/protobuf/empty.proto";
package api.bladeapi.v1alpha1;

option go_package = "github.com/xvzf/computeblade-agent/api/blade/v1alpha1;bladeapiv1alpha1";
option go_package = "github.com/uptime-induestries/compute-blade-agent/api/blade/v1alpha1;bladeapiv1alpha1";

// Event is an event the agent reacts to
enum Event {
Expand Down
6 changes: 3 additions & 3 deletions cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (

"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/spf13/viper"
bladeapiv1alpha1 "github.com/xvzf/computeblade-agent/api/bladeapi/v1alpha1"
"github.com/xvzf/computeblade-agent/internal/agent"
"github.com/xvzf/computeblade-agent/pkg/log"
bladeapiv1alpha1 "github.com/uptime-induestries/compute-blade-agent/api/bladeapi/v1alpha1"
"github.com/uptime-induestries/compute-blade-agent/internal/agent"
"github.com/uptime-induestries/compute-blade-agent/pkg/log"
"go.uber.org/zap"
"google.golang.org/grpc"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/bladectl/cmd_fan.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"strconv"

"github.com/spf13/cobra"
bladeapiv1alpha1 "github.com/xvzf/computeblade-agent/api/bladeapi/v1alpha1"
bladeapiv1alpha1 "github.com/uptime-induestries/compute-blade-agent/api/bladeapi/v1alpha1"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/bladectl/cmd_identify.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"github.com/spf13/cobra"
bladeapiv1alpha1 "github.com/xvzf/computeblade-agent/api/bladeapi/v1alpha1"
bladeapiv1alpha1 "github.com/uptime-induestries/compute-blade-agent/api/bladeapi/v1alpha1"
"google.golang.org/protobuf/types/known/emptypb"
)

Expand All @@ -15,7 +15,7 @@ func init() {
var cmdIdentify = &cobra.Command{
Use: "identify",
Short: "interact with the compute-blade identity LED",
RunE: runIdentity,
RunE: runIdentity,
}

func runIdentity(cmd *cobra.Command, _ []string) error {
Expand Down
4 changes: 2 additions & 2 deletions cmd/bladectl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/spf13/cobra"
bladeapiv1alpha1 "github.com/xvzf/computeblade-agent/api/bladeapi/v1alpha1"
bladeapiv1alpha1 "github.com/uptime-induestries/compute-blade-agent/api/bladeapi/v1alpha1"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
)
Expand Down Expand Up @@ -73,7 +73,7 @@ var rootCmd = &cobra.Command{
}
client := bladeapiv1alpha1.NewBladeAgentServiceClient(conn)

cmd.SetContext( clientIntoContext(ctx, client))
cmd.SetContext(clientIntoContext(ctx, client))
return nil
},
}
Expand Down
14 changes: 7 additions & 7 deletions cmd/fanunit/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"machine"
"time"

"github.com/xvzf/computeblade-agent/pkg/eventbus"
"github.com/xvzf/computeblade-agent/pkg/hal/led"
"github.com/xvzf/computeblade-agent/pkg/smartfanunit"
"github.com/xvzf/computeblade-agent/pkg/smartfanunit/emc2101"
"github.com/xvzf/computeblade-agent/pkg/smartfanunit/proto"
"github.com/uptime-induestries/compute-blade-agent/pkg/eventbus"
"github.com/uptime-induestries/compute-blade-agent/pkg/hal/led"
"github.com/uptime-induestries/compute-blade-agent/pkg/smartfanunit"
"github.com/uptime-induestries/compute-blade-agent/pkg/smartfanunit/emc2101"
"github.com/uptime-induestries/compute-blade-agent/pkg/smartfanunit/proto"
"golang.org/x/sync/errgroup"
"tinygo.org/x/drivers"
"tinygo.org/x/drivers/ws2812"
Expand Down Expand Up @@ -66,7 +66,7 @@ func (c *Controller) Run(parentCtx context.Context) error {
// Metric reporting events
println("[+] Starting metric reporting loop")
group.Go(func() error {
return c.metricReporter(ctx);
return c.metricReporter(ctx)
})

// Left blade events
Expand Down Expand Up @@ -186,7 +186,7 @@ func (c *Controller) metricReporter(ctx context.Context) error {
// FIXME: This is a workaround for an i2c lockup issue.
if err != nil {
println("[!] resetting CPU")
time.Sleep(100*time.Millisecond)
time.Sleep(100 * time.Millisecond)
machine.CPUReset()
}

Expand Down
8 changes: 4 additions & 4 deletions cmd/fanunit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"machine"
"time"

"github.com/xvzf/computeblade-agent/pkg/smartfanunit"
"github.com/xvzf/computeblade-agent/pkg/smartfanunit/emc2101"
"github.com/uptime-induestries/compute-blade-agent/pkg/smartfanunit"
"github.com/uptime-induestries/compute-blade-agent/pkg/smartfanunit/emc2101"
"tinygo.org/x/drivers/ws2812"
)

Expand All @@ -23,7 +23,7 @@ func main() {
machine.LED.Set(false)

// Configure UARTs
err = machine.UART0.Configure(machine.UARTConfig{TX: machine.UART0_TX_PIN, RX: machine.UART0_RX_PIN})
err = machine.UART0.Configure(machine.UARTConfig{TX: machine.UART0_TX_PIN, RX: machine.UART0_RX_PIN})
if err != nil {
println("[!] Failed to initialize UART0:", err.Error())
goto errprint
Expand Down Expand Up @@ -75,7 +75,7 @@ func main() {
err = controller.Run(context.Background())

// Blinking -> something went wrong
errprint:
errprint:
ledState := false
for {
ledState = !ledState
Expand Down
9 changes: 4 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
module github.com/xvzf/computeblade-agent
module github.com/uptime-induestries/compute-blade-agent

go 1.21
go 1.22

toolchain go1.21.3
toolchain go1.22.5

require (
github.com/jacobsa/go-serial v0.0.0-20180131005756-15cf729a72d4
github.com/prometheus/client_golang v1.16.0
github.com/spf13/cobra v1.6.1
github.com/spf13/viper v1.16.0
github.com/stretchr/testify v1.8.3
github.com/warthog618/gpiod v0.8.1
go.bug.st/serial v1.6.1
go.uber.org/zap v1.24.0
golang.org/x/sync v0.2.0
google.golang.org/grpc v1.56.2
Expand Down Expand Up @@ -42,7 +42,6 @@ require (
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
go.bug.st/serial v1.6.1 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
golang.org/x/net v0.10.0 // indirect
Expand Down
4 changes: 0 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:
github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/jacobsa/go-serial v0.0.0-20180131005756-15cf729a72d4 h1:G2ztCwXov8mRvP0ZfjE6nAlaCX2XbykaeHdbT6KwDz0=
github.com/jacobsa/go-serial v0.0.0-20180131005756-15cf729a72d4/go.mod h1:2RvX5ZjVtsznNZPEt4xwJXNJrM3VTZoQf7V6gk0ysvs=
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
Expand Down Expand Up @@ -362,8 +360,6 @@ golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA=
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
Expand Down
2 changes: 1 addition & 1 deletion hack/autoinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ get_latest_release() {
curl -s "https://api.github.com/repos/$repo/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'
}

github_repo="uptime-lab/computeblade-agent"
github_repo="github.com/uptime-induestries/compute-blade-agent"
package_suffix=$(detect_package_suffix)
latest_release=$(get_latest_release "$github_repo")

Expand Down
2 changes: 1 addition & 1 deletion hack/systemd/computeblade-agent.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=ComputeBlade Agent
Documentation=https://github.com/xvzf/computeblade-agent
Documentation=https://github.com/uptime-induestries/compute-blade-agent
After=network.target

[Service]
Expand Down
10 changes: 5 additions & 5 deletions internal/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"github.com/xvzf/computeblade-agent/pkg/fancontroller"
"github.com/xvzf/computeblade-agent/pkg/hal"
"github.com/xvzf/computeblade-agent/pkg/hal/led"
"github.com/xvzf/computeblade-agent/pkg/ledengine"
"github.com/xvzf/computeblade-agent/pkg/log"
"github.com/uptime-induestries/compute-blade-agent/pkg/fancontroller"
"github.com/uptime-induestries/compute-blade-agent/pkg/hal"
"github.com/uptime-induestries/compute-blade-agent/pkg/hal/led"
"github.com/uptime-induestries/compute-blade-agent/pkg/ledengine"
"github.com/uptime-induestries/compute-blade-agent/pkg/log"
"go.uber.org/zap"
)

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

bladeapiv1alpha1 "github.com/xvzf/computeblade-agent/api/bladeapi/v1alpha1"
bladeapiv1alpha1 "github.com/uptime-induestries/compute-blade-agent/api/bladeapi/v1alpha1"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/types/known/emptypb"
Expand Down
2 changes: 1 addition & 1 deletion internal/agent/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/stretchr/testify/assert"
"github.com/xvzf/computeblade-agent/internal/agent"
"github.com/uptime-induestries/compute-blade-agent/internal/agent"
)

func TestNewComputeBladeState(t *testing.T) {
Expand Down
4 changes: 1 addition & 3 deletions pkg/eventbus/eventbus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/xvzf/computeblade-agent/pkg/eventbus"
"github.com/uptime-induestries/compute-blade-agent/pkg/eventbus"
)

func TestEventBusManySubscribers(t *testing.T) {
Expand Down Expand Up @@ -35,13 +35,11 @@ func TestEventBusManySubscribers(t *testing.T) {
assert.Equal(t, len(sub3.C()), 0)
defer sub3.Unsubscribe()


// Publish some messages
eb.Publish("topic0", 10)
eb.Publish("topic0", 4)
eb.Publish("topic1", "Hello, World!")


// Assert received messages
assert.Equal(t, len(sub0.C()), 2)
assert.Equal(t, <-sub0.C(), 10)
Expand Down
2 changes: 1 addition & 1 deletion pkg/fancontroller/fancontroller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package fancontroller_test
import (
"testing"

"github.com/xvzf/computeblade-agent/pkg/fancontroller"
"github.com/uptime-induestries/compute-blade-agent/pkg/fancontroller"
)

func TestFanControllerLinear_GetFanSpeed(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/hal/example_smartfanunit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"context"
"log"

"github.com/xvzf/computeblade-agent/pkg/hal"
"github.com/xvzf/computeblade-agent/pkg/hal/led"
"github.com/uptime-induestries/compute-blade-agent/pkg/hal"
"github.com/uptime-induestries/compute-blade-agent/pkg/hal/led"
)

func ExampleNewSmartFanUnit() {
Expand Down
3 changes: 1 addition & 2 deletions pkg/hal/hal.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package hal
import (
"context"

"github.com/xvzf/computeblade-agent/pkg/hal/led"
"github.com/uptime-induestries/compute-blade-agent/pkg/hal/led"
)

type FanUnitKind uint8
Expand Down Expand Up @@ -63,7 +63,6 @@ type ComputeBladeHal interface {
WaitForEdgeButtonPress(ctx context.Context) error
}


// FanUnit abstracts the fan unit
type FanUnit interface {

Expand Down
4 changes: 2 additions & 2 deletions pkg/hal/hal_bcm2711.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import (
"syscall"
"time"

"github.com/uptime-induestries/compute-blade-agent/pkg/hal/led"
"github.com/uptime-induestries/compute-blade-agent/pkg/log"
"github.com/warthog618/gpiod"
"github.com/warthog618/gpiod/device/rpi"
"github.com/xvzf/computeblade-agent/pkg/hal/led"
"github.com/xvzf/computeblade-agent/pkg/log"
"go.uber.org/zap"
"golang.org/x/sync/errgroup"
)
Expand Down
Loading