From 95b8123621a1b578819a8cbd659b42e8bc04a122 Mon Sep 17 00:00:00 2001 From: xiantang Date: Mon, 3 Jun 2024 22:31:12 +0800 Subject: [PATCH] Change project owner to air-verse --- .github/workflows/smoke_test.yml | 8 ++++---- README-zh_cn.md | 12 ++++++------ README-zh_tw.md | 24 ++++++++++++------------ README.md | 24 ++++++++++++------------ air_example.toml | 2 +- go.mod | 2 +- install.sh | 4 ++-- main.go | 2 +- runner/engine.go | 4 ++-- runner/engine_test.go | 6 +++--- 10 files changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/workflows/smoke_test.yml b/.github/workflows/smoke_test.yml index 51a9fe8a..123c9711 100644 --- a/.github/workflows/smoke_test.yml +++ b/.github/workflows/smoke_test.yml @@ -6,14 +6,14 @@ on: jobs: smoke_test_ubuntu: - uses: cosmtrek/air/.github/workflows/smoke_test_reuse_job.yml@master + uses: air-verse/air/.github/workflows/smoke_test_reuse_job.yml@master with: run_on: ubuntu-latest smoke_test_macos: - uses: cosmtrek/air/.github/workflows/smoke_test_reuse_job.yml@master + uses: air-verse/air/.github/workflows/smoke_test_reuse_job.yml@master with: run_on: macos-latest smoke_test_windows: - uses: cosmtrek/air/.github/workflows/smoke_test_reuse_job_windows.yml@master + uses: air-verse/air/.github/workflows/smoke_test_reuse_job_windows.yml@master with: - run_on: windows-latest \ No newline at end of file + run_on: windows-latest diff --git a/README-zh_cn.md b/README-zh_cn.md index 52eb89f1..6782216f 100644 --- a/README-zh_cn.md +++ b/README-zh_cn.md @@ -1,4 +1,4 @@ -# Air [![Go](https://github.com/cosmtrek/air/workflows/Go/badge.svg)](https://github.com/cosmtrek/air/actions?query=workflow%3AGo+branch%3Amaster) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/dcb95264cc504cad9c2a3d8b0795a7f8)](https://www.codacy.com/gh/cosmtrek/air/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cosmtrek/air&utm_campaign=Badge_Grade) [![Go Report Card](https://goreportcard.com/badge/github.com/cosmtrek/air)](https://goreportcard.com/report/github.com/cosmtrek/air) [![Codecov](https://codecov.io/gh/cosmtrek/air/branch/master/graph/badge.svg)](https://codecov.io/gh/cosmtrek/air) +# Air [![Go](https://github.com/air-verse/air/workflows/Go/badge.svg)](https://github.com/air-verse/air/actions?query=workflow%3AGo+branch%3Amaster) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/dcb95264cc504cad9c2a3d8b0795a7f8)](https://www.codacy.com/gh/air-verse/air/dashboard?utm_source=github.com&utm_medium=referral&utm_content=air-verse/air&utm_campaign=Badge_Grade) [![Go Report Card](https://goreportcard.com/badge/github.com/air-verse/air)](https://goreportcard.com/report/github.com/air-verse/air) [![codecov](https://codecov.io/gh/air-verse/air/branch/master/graph/badge.svg)](https://codecov.io/gh/air-verse/air) :cloud: 热重载 Go 应用的工具 @@ -44,22 +44,22 @@ air --build.cmd "go build -o bin/api cmd/run.go" --build.bin "./bin/api" --build ```shell # binary 文件会是在 $(go env GOPATH)/bin/air -curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin +curl -sSfL https://raw.githubusercontent.com/air-verse/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin # 或者把它安装在 ./bin/ 路径下 -curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s +curl -sSfL https://raw.githubusercontent.com/air-verse/air/master/install.sh | sh -s air -v ``` -P.S. 非常感谢 mattn 的 [PR](https://github.com/cosmtrek/air/pull/1),使得 Air 支持 Windows 平台。 +P.S. 非常感谢 mattn 的 [PR](https://github.com/air-verse/air/pull/1),使得 Air 支持 Windows 平台。 ### 使用 `go install` 使用 Go 的版本为 1.22 或更高: -```shell -go install github.com/cosmtrek/air@latest +```bash +go install github.com/air-verse/air@latest ``` ### Docker diff --git a/README-zh_tw.md b/README-zh_tw.md index 1646391d..08cc6f40 100644 --- a/README-zh_tw.md +++ b/README-zh_tw.md @@ -1,6 +1,6 @@ # :cloud: Air - Live reload for Go apps -[![Go](https://github.com/cosmtrek/air/actions/workflows/release.yml/badge.svg)](https://github.com/cosmtrek/air/actions?query=workflow%3AGo+branch%3Amaster) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/dcb95264cc504cad9c2a3d8b0795a7f8)](https://www.codacy.com/gh/cosmtrek/air/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cosmtrek/air&utm_campaign=Badge_Grade) [![Go Report Card](https://goreportcard.com/badge/github.com/cosmtrek/air)](https://goreportcard.com/report/github.com/cosmtrek/air) [![Codecov](https://codecov.io/gh/cosmtrek/air/branch/master/graph/badge.svg)](https://codecov.io/gh/cosmtrek/air) +[![Go](https://github.com/air-verse/air/actions/workflows/release.yml/badge.svg)](https://github.com/air-verse/air/actions?query=workflow%3AGo+branch%3Amaster) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/dcb95264cc504cad9c2a3d8b0795a7f8)](https://www.codacy.com/gh/air-verse/air/dashboard?utm_source=github.com&utm_medium=referral&utm_content=air-verse/air&utm_campaign=Badge_Grade) [![Go Report Card](https://goreportcard.com/badge/github.com/air-verse/air)](https://goreportcard.com/report/github.com/air-verse/air) [![codecov](https://codecov.io/gh/air-verse/air/branch/master/graph/badge.svg)](https://codecov.io/gh/air-verse/air) ![air](docs/air.png) @@ -44,18 +44,18 @@ air --build.cmd "go build -o bin/api cmd/run.go" --build.bin "./bin/api" --build 需要使用 go 1.22 或更高版本: -```shell -go install github.com/cosmtrek/air@latest +```bash +go install github.com/air-verse/air@latest ``` ### 透過 install.sh ```shell # binary will be $(go env GOPATH)/bin/air -curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin +curl -sSfL https://raw.githubusercontent.com/air-verse/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin # or install it into ./bin/ -curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s +curl -sSfL https://raw.githubusercontent.com/air-verse/air/master/install.sh | sh -s air -v ``` @@ -64,18 +64,18 @@ air -v ```shell # binary will be /usr/local/bin/air -curl -sSfL https://goblin.run/github.com/cosmtrek/air | sh +curl -sSfL https://goblin.run/github.com/air-verse/air | sh # to put to a custom path -curl -sSfL https://goblin.run/github.com/cosmtrek/air | PREFIX=/tmp sh +curl -sSfL https://goblin.run/github.com/air-verse/air | PREFIX=/tmp sh ``` ### 透過 `go install` 使用 go 1.18 或更高版本: -```shell -go install github.com/cosmtrek/air@latest +```bash +go install github.com/air-verse/air@latest ``` ### Docker/Podman @@ -216,7 +216,7 @@ FROM golang:1.21-alpine WORKDIR /app -RUN go install github.com/cosmtrek/air@latest +RUN go install github.com/air-verse/air@latest COPY go.mod go.sum ./ RUN go mod download @@ -253,7 +253,7 @@ export PATH=$PATH:$(go env GOPATH)/bin <---- Confirm this line in you profile!!! ### 當 bin 中包含 ' 時,在 wsl 下的錯誤 -應該使用 `\` 來轉義 bin 中的 `'。相關議題:[#305](https://github.com/cosmtrek/air/issues/305) +應該使用 `\` 來轉義 bin 中的 `'。相關議題:[#305](https://github.com/air-verse/air/issues/305) ## 開發 @@ -294,7 +294,7 @@ git push origin v1.xx.x ## 星星歷史 -[![Star History Chart](https://api.star-history.com/svg?repos=cosmtrek/air&type=Date)](https://star-history.com/#cosmtrek/air&Date) +[![Star History Chart](https://api.star-history.com/svg?repos=air-verse/air&type=Date)](https://star-history.com/#air-verse/air&Date) ## 贊助專案 diff --git a/README.md b/README.md index 86c12ccc..59ad8a01 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # :cloud: Air - Live reload for Go apps -[![Go](https://github.com/cosmtrek/air/actions/workflows/release.yml/badge.svg)](https://github.com/cosmtrek/air/actions?query=workflow%3AGo+branch%3Amaster) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/dcb95264cc504cad9c2a3d8b0795a7f8)](https://www.codacy.com/gh/cosmtrek/air/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cosmtrek/air&utm_campaign=Badge_Grade) [![Go Report Card](https://goreportcard.com/badge/github.com/cosmtrek/air)](https://goreportcard.com/report/github.com/cosmtrek/air) [![Codecov](https://codecov.io/gh/cosmtrek/air/branch/master/graph/badge.svg)](https://codecov.io/gh/cosmtrek/air) +[![Go](https://github.com/air-verse/air/actions/workflows/release.yml/badge.svg)](https://github.com/air-verse/air/actions?query=workflow%3AGo+branch%3Amaster) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/dcb95264cc504cad9c2a3d8b0795a7f8)](https://www.codacy.com/gh/air-verse/air/dashboard?utm_source=github.com&utm_medium=referral&utm_content=air-verse/air&utm_campaign=Badge_Grade) [![Go Report Card](https://goreportcard.com/badge/github.com/air-verse/air)](https://goreportcard.com/report/github.com/air-verse/air) [![codecov](https://codecov.io/gh/air-verse/air/branch/master/graph/badge.svg)](https://codecov.io/gh/air-verse/air) ![air](docs/air.png) @@ -48,18 +48,18 @@ air --build.cmd "go build -o bin/api cmd/run.go" --build.bin "./bin/api" --build With go 1.22 or higher: -```shell -go install github.com/cosmtrek/air@latest +```bash +go install github.com/air-verse/air@latest ``` ### Via install.sh ```shell # binary will be $(go env GOPATH)/bin/air -curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin +curl -sSfL https://raw.githubusercontent.com/air-verse/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin # or install it into ./bin/ -curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s +curl -sSfL https://raw.githubusercontent.com/air-verse/air/master/install.sh | sh -s air -v ``` @@ -68,10 +68,10 @@ air -v ```shell # binary will be /usr/local/bin/air -curl -sSfL https://goblin.run/github.com/cosmtrek/air | sh +curl -sSfL https://goblin.run/github.com/air-verse/air | sh # to put to a custom path -curl -sSfL https://goblin.run/github.com/cosmtrek/air | PREFIX=/tmp sh +curl -sSfL https://goblin.run/github.com/air-verse/air | PREFIX=/tmp sh ``` ### Docker/Podman @@ -213,7 +213,7 @@ FROM golang:1.22-alpine WORKDIR /app -RUN go install github.com/cosmtrek/air@latest +RUN go install github.com/air-verse/air@latest COPY go.mod go.sum ./ RUN go mod download @@ -250,11 +250,11 @@ export PATH=$PATH:$(go env GOPATH)/bin <---- Confirm this line in you profile!!! ### Error under wsl when ' is included in the bin -Should use `\` to escape the `' in the bin. related issue: [#305](https://github.com/cosmtrek/air/issues/305) +Should use `\` to escape the `' in the bin. related issue: [#305](https://github.com/air-verse/air/issues/305) ### Question: how to do hot compile only and do not run anything? -[#365](https://github.com/cosmtrek/air/issues/365) +[#365](https://github.com/air-verse/air/issues/365) ```toml [build] @@ -264,7 +264,7 @@ Should use `\` to escape the `' in the bin. related issue: [#305](https://github ### How to Reload the Browser Automatically on Static File Changes -Refer to issue [#512](https://github.com/cosmtrek/air/issues/512) for additional details. +Refer to issue [#512](https://github.com/air-verse/air/issues/512) for additional details. * Ensure your static files in `include_dir`, `include_ext`, or `include_file`. * Ensure your HTML has a `` tag @@ -316,7 +316,7 @@ git push origin v1.xx.x ## Star History -[![Star History Chart](https://api.star-history.com/svg?repos=cosmtrek/air&type=Date)](https://star-history.com/#cosmtrek/air&Date) +[![Star History Chart](https://api.star-history.com/svg?repos=air-verse/air&type=Date)](https://star-history.com/#air-verse/air&Date) ## Sponsor diff --git a/air_example.toml b/air_example.toml index b2235e68..ac00e8c0 100644 --- a/air_example.toml +++ b/air_example.toml @@ -1,4 +1,4 @@ -# Config file for [Air](https://github.com/cosmtrek/air) in TOML format +# Config file for [Air](https://github.com/air-verse/air) in TOML format # Working directory # . or absolute path, please note that the directories following must be under root. diff --git a/go.mod b/go.mod index 6e69bdb9..b1442118 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/cosmtrek/air +module github.com/air-verse/air go 1.22 diff --git a/install.sh b/install.sh index c4380c4a..52705c81 100755 --- a/install.sh +++ b/install.sh @@ -6,13 +6,13 @@ set -e usage() { this=$1 cat <