Change project owner to air-verse (#607)
This reverts commit 613d2b313d.
This commit is contained in:
@@ -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
|
||||
run_on: windows-latest
|
||||
|
||||
+6
-6
@@ -1,4 +1,4 @@
|
||||
# Air [](https://github.com/cosmtrek/air/actions?query=workflow%3AGo+branch%3Amaster) [](https://www.codacy.com/gh/cosmtrek/air/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cosmtrek/air&utm_campaign=Badge_Grade) [](https://goreportcard.com/report/github.com/cosmtrek/air) [](https://codecov.io/gh/cosmtrek/air)
|
||||
# Air [](https://github.com/air-verse/air/actions?query=workflow%3AGo+branch%3Amaster) [](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) [](https://goreportcard.com/report/github.com/air-verse/air) [](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
|
||||
|
||||
+12
-12
@@ -1,6 +1,6 @@
|
||||
# :cloud: Air - Live reload for Go apps
|
||||
|
||||
[](https://github.com/cosmtrek/air/actions?query=workflow%3AGo+branch%3Amaster) [](https://www.codacy.com/gh/cosmtrek/air/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cosmtrek/air&utm_campaign=Badge_Grade) [](https://goreportcard.com/report/github.com/cosmtrek/air) [](https://codecov.io/gh/cosmtrek/air)
|
||||
[](https://github.com/air-verse/air/actions?query=workflow%3AGo+branch%3Amaster) [](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) [](https://goreportcard.com/report/github.com/air-verse/air) [](https://codecov.io/gh/air-verse/air)
|
||||
|
||||

|
||||
|
||||
@@ -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
|
||||
|
||||
## 星星歷史
|
||||
|
||||
[](https://star-history.com/#cosmtrek/air&Date)
|
||||
[](https://star-history.com/#air-verse/air&Date)
|
||||
|
||||
## 贊助專案
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# :cloud: Air - Live reload for Go apps
|
||||
|
||||
[](https://github.com/cosmtrek/air/actions?query=workflow%3AGo+branch%3Amaster) [](https://www.codacy.com/gh/cosmtrek/air/dashboard?utm_source=github.com&utm_medium=referral&utm_content=cosmtrek/air&utm_campaign=Badge_Grade) [](https://goreportcard.com/report/github.com/cosmtrek/air) [](https://codecov.io/gh/cosmtrek/air)
|
||||
[](https://github.com/air-verse/air/actions?query=workflow%3AGo+branch%3Amaster) [](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) [](https://goreportcard.com/report/github.com/air-verse/air) [](https://codecov.io/gh/air-verse/air)
|
||||
|
||||

|
||||
|
||||
@@ -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 `</body>` tag
|
||||
@@ -316,7 +316,7 @@ git push origin v1.xx.x
|
||||
|
||||
## Star History
|
||||
|
||||
[](https://star-history.com/#cosmtrek/air&Date)
|
||||
[](https://star-history.com/#air-verse/air&Date)
|
||||
|
||||
## Sponsor
|
||||
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module github.com/cosmtrek/air
|
||||
module github.com/air-verse/air
|
||||
|
||||
go 1.22
|
||||
|
||||
|
||||
+2
-2
@@ -6,13 +6,13 @@ set -e
|
||||
usage() {
|
||||
this=$1
|
||||
cat <<EOF
|
||||
$this: download go binaries for cosmtrek/air
|
||||
$this: download go binaries for air-verse/air
|
||||
|
||||
Usage: $this [-b] bindir [-d] [tag]
|
||||
-b sets bindir or installation directory, Defaults to ./bin
|
||||
-d turns on debug logging
|
||||
[tag] is a tag from
|
||||
https://github.com/cosmtrek/air/releases
|
||||
https://github.com/air-verse/air/releases
|
||||
If tag is missing, then the latest will be used.
|
||||
|
||||
Generated by godownloader
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"runtime/debug"
|
||||
"syscall"
|
||||
|
||||
"github.com/cosmtrek/air/runner"
|
||||
"github.com/air-verse/air/runner"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
+2
-2
@@ -339,8 +339,8 @@ func (e *Engine) start() {
|
||||
}
|
||||
}
|
||||
|
||||
// cannot set buildDelay to 0, because when the write multiple events received in short time
|
||||
// it will start Multiple buildRuns: https://github.com/cosmtrek/air/issues/473
|
||||
// cannot set buldDelay to 0, because when the write multiple events received in short time
|
||||
// it will start Multiple buildRuns: https://github.com/air-verse/air/issues/473
|
||||
time.Sleep(e.config.buildDelay())
|
||||
e.flushEvents()
|
||||
|
||||
|
||||
@@ -365,7 +365,7 @@ func waitingPortConnectionRefused(t *testing.T, port int, timeout time.Duration)
|
||||
}
|
||||
|
||||
func TestCtrlCWhenHaveKillDelay(t *testing.T) {
|
||||
// fix https://github.com/cosmtrek/air/issues/278
|
||||
// fix https://github.com/air-verse/air/issues/278
|
||||
// generate a random port
|
||||
data := []byte("[build]\n kill_delay = \"2s\"")
|
||||
c := Config{}
|
||||
@@ -486,7 +486,7 @@ func TestCtrlCWithFailedBin(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFixCloseOfChannelAfterCtrlC(t *testing.T) {
|
||||
// fix https://github.com/cosmtrek/air/issues/294
|
||||
// fix https://github.com/air-verse/air/issues/294
|
||||
dir := initWithBuildFailedCode(t)
|
||||
chdir(t, dir)
|
||||
engine, err := NewEngine("", true)
|
||||
@@ -529,7 +529,7 @@ func TestFixCloseOfChannelAfterCtrlC(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFixCloseOfChannelAfterTwoFailedBuild(t *testing.T) {
|
||||
// fix https://github.com/cosmtrek/air/issues/294
|
||||
// fix https://github.com/air-verse/air/issues/294
|
||||
// happens after two failed builds
|
||||
dir := initWithBuildFailedCode(t)
|
||||
// change dir to tmpDir
|
||||
|
||||
Reference in New Issue
Block a user