Skip to content

Commit

Permalink
Change project owner to air-verse (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiantang authored Jun 3, 2024
1 parent 412be00 commit 32b22d6
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 44 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/smoke_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions README-zh_cn.md
Original file line number Diff line number Diff line change
@@ -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 应用的工具

Expand Down Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions README-zh_tw.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -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
```
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
## 開發
Expand Down Expand Up @@ -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)
## 贊助專案
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -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&amp;utm_medium=referral&amp;utm_content=cosmtrek/air&amp;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&amp;utm_medium=referral&amp;utm_content=air-verse/air&amp;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)

Expand Down Expand Up @@ -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
```
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion air_example.toml
Original file line number Diff line number Diff line change
@@ -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.
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/cosmtrek/air
module github.com/air-verse/air

go 1.22

Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"runtime/debug"
"syscall"

"github.com/cosmtrek/air/runner"
"github.com/air-verse/air/runner"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions runner/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
6 changes: 3 additions & 3 deletions runner/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 32b22d6

Please sign in to comment.