Skip to content

Commit

Permalink
chore: rename to siderolabs/siderolink
Browse files Browse the repository at this point in the history
Rekres, update import paths.

Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
smira committed Sep 27, 2022
1 parent ca470c7 commit 16a84eb
Show file tree
Hide file tree
Showing 15 changed files with 47 additions and 36 deletions.
12 changes: 11 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2021-11-19T13:50:19Z by kres c4d092b.
# Generated on 2022-09-27T12:22:46Z by kres 8e6d786.

kind: pipeline
type: kubernetes
Expand Down Expand Up @@ -225,6 +225,12 @@ volumes:
temp:
medium: memory

trigger:
branch:
exclude:
- renovate/*
- dependabot/*

---
kind: pipeline
type: kubernetes
Expand Down Expand Up @@ -252,6 +258,10 @@ steps:
- failure

trigger:
branch:
exclude:
- renovate/*
- dependabot/*
status:
- success
- failure
Expand Down
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ linters-settings:
lines: 60
statements: 40
gci:
local-prefixes: github.com/talos-systems/siderolink
local-prefixes: github.com/siderolabs/siderolink
gocognit:
min-complexity: 30
ireturn:
Expand Down Expand Up @@ -65,7 +65,7 @@ linters-settings:
gofmt:
simplify: true
goimports:
local-prefixes: github.com/talos-systems/siderolink
local-prefixes: github.com/siderolabs/siderolink
golint:
min-confidence: 0.8
gomnd:
Expand Down
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2022-08-31T10:23:45Z by kres latest.
# Generated on 2022-09-27T12:22:46Z by kres 8e6d786.

ARG TOOLCHAIN

# runs markdownlint
FROM node:18.7.0-alpine AS lint-markdown
FROM docker.io/node:18.9.0-alpine3.16 AS lint-markdown
WORKDIR /src
RUN npm i -g markdownlint-cli@0.31.1
RUN npm i -g markdownlint-cli@0.32.2
RUN npm i [email protected]
COPY .markdownlint.json .
COPY ./README.md ./README.md
Expand All @@ -25,7 +25,7 @@ FROM ${TOOLCHAIN} AS toolchain
RUN apk --update --no-cache add bash curl build-base protoc protobuf-dev

# build tools
FROM toolchain AS tools
FROM --platform=${BUILDPLATFORM} toolchain AS tools
ENV GO111MODULE on
ENV CGO_ENABLED 0
ENV GOPATH /go
Expand Down Expand Up @@ -73,7 +73,7 @@ COPY --from=proto-specs / /
RUN protoc -I/api --go_out=paths=source_relative:/api --go-grpc_out=paths=source_relative:/api --go-vtproto_out=paths=source_relative:/api --go-vtproto_opt=features=marshal+unmarshal+size /api/events/events.proto /api/siderolink/provision.proto
RUN rm /api/events/events.proto
RUN rm /api/siderolink/provision.proto
RUN goimports -w -local github.com/talos-systems/siderolink /api
RUN goimports -w -local github.com/siderolabs/siderolink /api
RUN gofumpt -w /api

# runs gofumpt
Expand All @@ -82,7 +82,7 @@ RUN FILES="$(gofumpt -l .)" && test -z "${FILES}" || (echo -e "Source code is no

# runs goimports
FROM base AS lint-goimports
RUN FILES="$(goimports -l -local github.com/talos-systems/siderolink .)" && test -z "${FILES}" || (echo -e "Source code is not formatted with 'goimports -w -local github.com/talos-systems/siderolink .':\n${FILES}"; exit 1)
RUN FILES="$(goimports -l -local github.com/siderolabs/siderolink .)" && test -z "${FILES}" || (echo -e "Source code is not formatted with 'goimports -w -local github.com/siderolabs/siderolink .':\n${FILES}"; exit 1)

# runs golangci-lint
FROM base AS lint-golangci-lint
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2022-08-31T10:23:45Z by kres latest.
# Generated on 2022-09-27T12:22:46Z by kres 8e6d786.

# common variables

Expand All @@ -17,7 +17,7 @@ GO_VERSION ?= 1.19
GOIMPORTS_VERSION ?= v0.1.12
PROTOBUF_GO_VERSION ?= 1.28.1
GRPC_GO_VERSION ?= 1.2.0
GRPC_GATEWAY_VERSION ?= 2.11.1
GRPC_GATEWAY_VERSION ?= 2.11.3
VTPROTOBUF_VERSION ?= 0.3.0
DEEPCOPY_VERSION ?= v0.5.5
TESTPKGS ?= ./...
Expand All @@ -39,6 +39,7 @@ COMMON_ARGS += --build-arg=ARTIFACTS=$(ARTIFACTS)
COMMON_ARGS += --build-arg=SHA=$(SHA)
COMMON_ARGS += --build-arg=TAG=$(TAG)
COMMON_ARGS += --build-arg=USERNAME=$(USERNAME)
COMMON_ARGS += --build-arg=REGISTRY=$(REGISTRY)
COMMON_ARGS += --build-arg=TOOLCHAIN=$(TOOLCHAIN)
COMMON_ARGS += --build-arg=GOLANGCILINT_VERSION=$(GOLANGCILINT_VERSION)
COMMON_ARGS += --build-arg=GOFUMPT_VERSION=$(GOFUMPT_VERSION)
Expand Down
10 changes: 5 additions & 5 deletions api/events/events.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 api/events/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package events;

option go_package = "github.com/talos-systems/siderolink/api/events";
option go_package = "github.com/siderolabs/siderolink/api/events";

import "google/protobuf/any.proto";

Expand Down
12 changes: 6 additions & 6 deletions api/siderolink/provision.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 api/siderolink/provision.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ syntax = "proto3";

package sidero.link;

option go_package = "github.com/talos-systems/siderolink/api/siderolink/pb";
option go_package = "github.com/siderolabs/siderolink/api/siderolink/pb";

// ProvisionService initiates the SideroLink connection.
service ProvisionService {
Expand Down
4 changes: 2 additions & 2 deletions cmd/siderolink-agent/event_sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"google.golang.org/grpc"
"gopkg.in/yaml.v3"

eventsapi "github.com/talos-systems/siderolink/api/events"
"github.com/talos-systems/siderolink/pkg/events"
eventsapi "github.com/siderolabs/siderolink/api/events"
"github.com/siderolabs/siderolink/pkg/events"
)

var eventSinkFlags struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/siderolink-agent/log_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"go.uber.org/zap"
"golang.org/x/sync/errgroup"

"github.com/talos-systems/siderolink/pkg/logreceiver"
"github.com/siderolabs/siderolink/pkg/logreceiver"
)

var logReceiverFlags struct {
Expand Down
6 changes: 3 additions & 3 deletions cmd/siderolink-agent/siderolink.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
"google.golang.org/grpc"

pb "github.com/talos-systems/siderolink/api/siderolink"
"github.com/talos-systems/siderolink/internal/server"
"github.com/talos-systems/siderolink/pkg/wireguard"
pb "github.com/siderolabs/siderolink/api/siderolink"
"github.com/siderolabs/siderolink/internal/server"
"github.com/siderolabs/siderolink/pkg/wireguard"
)

var sideroLinkFlags struct {
Expand Down
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/talos-systems/siderolink
module github.com/siderolabs/siderolink

go 1.19

Expand Down
4 changes: 2 additions & 2 deletions internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

pb "github.com/talos-systems/siderolink/api/siderolink"
"github.com/talos-systems/siderolink/pkg/wireguard"
pb "github.com/siderolabs/siderolink/api/siderolink"
"github.com/siderolabs/siderolink/pkg/wireguard"
)

// Server implents gRPC API.
Expand Down
2 changes: 1 addition & 1 deletion pkg/events/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"google.golang.org/grpc/peer"
"google.golang.org/protobuf/proto"

"github.com/talos-systems/siderolink/api/events"
"github.com/siderolabs/siderolink/api/events"
)

// Adapter is an abstract event stream receiver.
Expand Down
4 changes: 2 additions & 2 deletions pkg/events/sink_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/anypb"

eventsapi "github.com/talos-systems/siderolink/api/events"
"github.com/talos-systems/siderolink/pkg/events"
eventsapi "github.com/siderolabs/siderolink/api/events"
"github.com/siderolabs/siderolink/pkg/events"
)

type state struct {
Expand Down

0 comments on commit 16a84eb

Please sign in to comment.