Fix: name errors

This commit is contained in:
xjasonlyu committed 2022-12-16 15:02:40 +08:00
1 parent 3aeb73b357
commit a60d6d3cc8
6 files changed
+23 -23

No files matched your search

+6 -6
View File
@@ -56,8 +56,8 @@ jobs:
push: true push: true
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
tags: | tags: |
javtube/metatube-server:dev metatube-community/metatube-server:dev
ghcr.io/javtube/metatube-server:dev ghcr.io/metatube-community/metatube-server:dev
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
@@ -70,9 +70,9 @@ jobs:
push: true push: true
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
tags: | tags: |
javtube/metatube-server:latest metatube-community/metatube-server:latest
javtube/metatube-server:${{ steps.shell.outputs.version }} metatube-community/metatube-server:${{ steps.shell.outputs.version }}
ghcr.io/javtube/metatube-server:latest ghcr.io/metatube-community/metatube-server:latest
ghcr.io/javtube/metatube-server:${{ steps.shell.outputs.version }} ghcr.io/metatube-community/metatube-server:${{ steps.shell.outputs.version }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
+1 -1
View File
@@ -41,5 +41,5 @@ jobs:
files: build/* files: build/*
draft: false draft: false
prerelease: false prerelease: false
repository: javtube/metatube-server-releases repository: metatube-community/metatube-server-releases
token: ${{ secrets.BOT_PAT }} token: ${{ secrets.BOT_PAT }}
+1 -1
View File
@@ -10,7 +10,7 @@ linters-settings:
gci: gci:
sections: sections:
- standard - standard
- prefix(github.com/javtube/metatube-sdk-go) - prefix(github.com/metatube-community/metatube-sdk-go)
- default - default
staticcheck: staticcheck:
go: '1.19' go: '1.19'
+1 -1
View File
@@ -7,7 +7,7 @@ RUN apk add --update --no-cache --no-progress make git \
&& make server && make server
FROM alpine:latest 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 . COPY --from=builder /src/build/metatube-server .
+1 -1
View File
@@ -1,4 +1,4 @@
MODULE := github.com/javtube/metatube-sdk-go MODULE := github.com/metatube-community/metatube-sdk-go
SERVER_NAME := metatube-server SERVER_NAME := metatube-server
SERVER_CODE := cmd/server/main.go SERVER_CODE := cmd/server/main.go
+13 -13
View File
@@ -1,12 +1,12 @@
# MetaTube SDK Go # 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) [![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/javtube/metatube-sdk-go?style=flat-square)](https://github.com/javtube/metatube-sdk-go) [![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/javtube/metatube-sdk-go/blob/main/go.mod) [![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/javtube/metatube-sdk-go?color=A42E2B&logo=gnu&style=flat-square)](https://github.com/javtube/metatube-sdk-go/blob/main/LICENSE) [![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/javtube/metatube-sdk-go?color=%23ff8936&logo=fitbit&style=flat-square)](https://github.com/javtube/metatube-sdk-go/tags) [![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. 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. 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 ```sh
go get -u github.com/javtube/metatube-sdk-go go get -u github.com/metatube-community/metatube-sdk-go
``` ```
## Quickstart ## Quickstart
@@ -67,7 +67,7 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/javtube/metatube-sdk-go/engine" "github.com/metatube-community/metatube-sdk-go/engine"
) )
func main() { func main() {
@@ -91,7 +91,7 @@ $ go run example.go
## API Examples ## 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 ### Initiate SDK engine manually
@@ -102,8 +102,8 @@ import (
"log" "log"
"time" "time"
"github.com/javtube/metatube-sdk-go/database" "github.com/metatube-community/metatube-sdk-go/database"
"github.com/javtube/metatube-sdk-go/engine" "github.com/metatube-community/metatube-sdk-go/engine"
) )
func main() { func main() {
@@ -195,7 +195,7 @@ func main() {
package main package main
import ( import (
"github.com/javtube/metatube-sdk-go/translate" "github.com/metatube-community/metatube-sdk-go/translate"
) )
func main() { func main() {
@@ -226,4 +226,4 @@ func main() {
## License ## 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)