From a60d6d3cc85059472e60286079962170e5de41b8 Mon Sep 17 00:00:00 2001 From: xjasonlyu Date: Fri, 16 Dec 2022 15:02:40 +0800 Subject: [PATCH] Fix: name errors --- .github/workflows/docker.yml | 12 ++++++------ .github/workflows/release.yml | 2 +- .golangci.yaml | 2 +- Dockerfile | 2 +- Makefile | 2 +- README.md | 26 +++++++++++++------------- 6 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 06f4484..9c7daa1 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -56,8 +56,8 @@ jobs: push: true platforms: linux/amd64,linux/arm64 tags: | - javtube/metatube-server:dev - ghcr.io/javtube/metatube-server:dev + metatube-community/metatube-server:dev + ghcr.io/metatube-community/metatube-server:dev cache-from: type=gha cache-to: type=gha,mode=max @@ -70,9 +70,9 @@ jobs: push: true platforms: linux/amd64,linux/arm64 tags: | - javtube/metatube-server:latest - javtube/metatube-server:${{ steps.shell.outputs.version }} - ghcr.io/javtube/metatube-server:latest - ghcr.io/javtube/metatube-server:${{ steps.shell.outputs.version }} + metatube-community/metatube-server:latest + metatube-community/metatube-server:${{ steps.shell.outputs.version }} + ghcr.io/metatube-community/metatube-server:latest + ghcr.io/metatube-community/metatube-server:${{ steps.shell.outputs.version }} cache-from: type=gha cache-to: type=gha,mode=max diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f8dcdc2..a55fa45 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,5 +41,5 @@ jobs: files: build/* draft: false prerelease: false - repository: javtube/metatube-server-releases + repository: metatube-community/metatube-server-releases token: ${{ secrets.BOT_PAT }} diff --git a/.golangci.yaml b/.golangci.yaml index 1823d10..f687e62 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -10,7 +10,7 @@ linters-settings: gci: sections: - standard - - prefix(github.com/javtube/metatube-sdk-go) + - prefix(github.com/metatube-community/metatube-sdk-go) - default staticcheck: go: '1.19' diff --git a/Dockerfile b/Dockerfile index b10d34d..f0a9916 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ RUN apk add --update --no-cache --no-progress make git \ && make server FROM alpine:latest -LABEL org.opencontainers.image.source="https://github.com/javtube/metatube-sdk-go" +LABEL org.opencontainers.image.source="https://github.com/metatube-community/metatube-sdk-go" COPY --from=builder /src/build/metatube-server . diff --git a/Makefile b/Makefile index c7ba703..83a0dda 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -MODULE := github.com/javtube/metatube-sdk-go +MODULE := github.com/metatube-community/metatube-sdk-go SERVER_NAME := metatube-server SERVER_CODE := cmd/server/main.go diff --git a/README.md b/README.md index de68fa1..a369dc4 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # MetaTube SDK Go -[![Build Status](https://img.shields.io/github/workflow/status/javtube/metatube-sdk-go/Publish%20Go%20Releases?style=flat-square&logo=github-actions)](https://github.com/javtube/metatube-sdk-go/actions/workflows/release.yml) -[![Go Report Card](https://goreportcard.com/badge/github.com/javtube/metatube-sdk-go?style=flat-square)](https://github.com/javtube/metatube-sdk-go) -[![Require Go Version](https://img.shields.io/badge/go-%3E%3D1.19-30dff3?style=flat-square&logo=go)](https://github.com/javtube/metatube-sdk-go/blob/main/go.mod) -[![GitHub License](https://img.shields.io/github/license/javtube/metatube-sdk-go?color=A42E2B&logo=gnu&style=flat-square)](https://github.com/javtube/metatube-sdk-go/blob/main/LICENSE) -[![Tag](https://img.shields.io/github/v/tag/javtube/metatube-sdk-go?color=%23ff8936&logo=fitbit&style=flat-square)](https://github.com/javtube/metatube-sdk-go/tags) +[![Build Status](https://img.shields.io/github/workflow/status/metatube-community/metatube-sdk-go/Publish%20Go%20Releases?style=flat-square&logo=github-actions)](https://github.com/metatube-community/metatube-sdk-go/actions/workflows/release.yml) +[![Go Report Card](https://goreportcard.com/badge/github.com/metatube-community/metatube-sdk-go?style=flat-square)](https://github.com/metatube-community/metatube-sdk-go) +[![Require Go Version](https://img.shields.io/badge/go-%3E%3D1.19-30dff3?style=flat-square&logo=go)](https://github.com/metatube-community/metatube-sdk-go/blob/main/go.mod) +[![GitHub License](https://img.shields.io/github/license/metatube-community/metatube-sdk-go?color=A42E2B&logo=gnu&style=flat-square)](https://github.com/metatube-community/metatube-sdk-go/blob/main/LICENSE) +[![Tag](https://img.shields.io/github/v/tag/metatube-community/metatube-sdk-go?color=%23ff8936&logo=fitbit&style=flat-square)](https://github.com/metatube-community/metatube-sdk-go/tags) -[//]: # ([![Supported Platforms](https://img.shields.io/badge/platform-Linux%20%7C%20FreeBSD%20%7C%20NetBSD%20%7C%20OpenBSD%20%7C%20Darwin%20%7C%20Windows-549688?style=flat-square&logo=launchpad)](https://github.com/javtube/metatube-sdk-go)) +[//]: # ([![Supported Platforms](https://img.shields.io/badge/platform-Linux%20%7C%20FreeBSD%20%7C%20NetBSD%20%7C%20OpenBSD%20%7C%20Darwin%20%7C%20Windows-549688?style=flat-square&logo=launchpad)](https://github.com/metatube-community/metatube-sdk-go)) Metadata Tube SDK in Golang. @@ -50,7 +50,7 @@ Metadata Tube SDK in Golang. To install this package, you first need [Go](https://golang.org/) installed (**version 1.19+ is required**), then you can use the below Go command to install SDK. ```sh -go get -u github.com/javtube/metatube-sdk-go +go get -u github.com/metatube-community/metatube-sdk-go ``` ## Quickstart @@ -67,7 +67,7 @@ import ( "fmt" "log" - "github.com/javtube/metatube-sdk-go/engine" + "github.com/metatube-community/metatube-sdk-go/engine" ) func main() { @@ -91,7 +91,7 @@ $ go run example.go ## API Examples -You can find detailed examples in [examples folder](https://github.com/javtube/metatube-sdk-go/tree/main/_examples/) or specific implementations in [cmd folder](https://github.com/javtube/metatube-sdk-go/tree/main/cmd/). +You can find detailed examples in [examples folder](https://github.com/metatube-community/metatube-sdk-go/tree/main/_examples/) or specific implementations in [cmd folder](https://github.com/metatube-community/metatube-sdk-go/tree/main/cmd/). ### Initiate SDK engine manually @@ -102,8 +102,8 @@ import ( "log" "time" - "github.com/javtube/metatube-sdk-go/database" - "github.com/javtube/metatube-sdk-go/engine" + "github.com/metatube-community/metatube-sdk-go/database" + "github.com/metatube-community/metatube-sdk-go/engine" ) func main() { @@ -195,7 +195,7 @@ func main() { package main import ( - "github.com/javtube/metatube-sdk-go/translate" + "github.com/metatube-community/metatube-sdk-go/translate" ) func main() { @@ -226,4 +226,4 @@ func main() { ## License -[GNU GPLv3 License](https://github.com/javtube/metatube-sdk-go/blob/main/LICENSE) +[GNU GPLv3 License](https://github.com/metatube-community/metatube-sdk-go/blob/main/LICENSE)