Skip to content

Commit

Permalink
migrate stealthrocket URLs to dispatch.run (#145)
Browse files Browse the repository at this point in the history
I'm preparing to get some eyes on this tomorrow 🚀
  • Loading branch information
achille-roussel authored May 9, 2024
2 parents fad3d04 + 796e155 commit 9aa62f9
Show file tree
Hide file tree
Showing 23 changed files with 115 additions and 115 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ concurrency:
cancel-in-progress: true

env:
GOPRIVATE: github.com/stealthrocket/*
GOPRIVATE: github.com/dispatchrun/*
GH_ACCESS_TOKEN: ${{ secrets.PRIVATE_ACCESS_TOKEN }}

jobs:
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![build](https://github.com/stealthrocket/coroutine/actions/workflows/build.yml/badge.svg)](https://github.com/stealthrocket/coroutine/actions/workflows/build.yml)
[![Go Reference](https://pkg.go.dev/badge/github.com/stealthrocket/coroutine.svg)](https://pkg.go.dev/github.com/stealthrocket/coroutine)
[![build](https://github.com/dispatchrun/coroutine/actions/workflows/build.yml/badge.svg)](https://github.com/dispatchrun/coroutine/actions/workflows/build.yml)
[![Go Reference](https://pkg.go.dev/badge/github.com/dispatchrun/coroutine.svg)](https://pkg.go.dev/github.com/dispatchrun/coroutine)
[![Apache 2 License](https://img.shields.io/badge/license-Apache%202-blue.svg)](LICENSE)
[![Discord](https://img.shields.io/discord/1126309607166464131?label=Discord)](Discord)

Expand All @@ -8,7 +8,7 @@
This project contains a durable coroutine compiler and runtime library for Go.

> **Note**
> Read our announcement blog post: [Fairy tales of workflow orchestration](https://blog.stealthrocket.tech/fairy-tales-of-workflow-orchestration/).
> Read our announcement blog post: [Fairy tales of workflow orchestration](https://blog.dispatch.run/fairy-tales-of-workflow-orchestration/).
## Usage

Expand All @@ -29,7 +29,7 @@ the caller:
// main.go
package main

import "github.com/stealthrocket/coroutine"
import "github.com/dispatchrun/coroutine"

func main() {
coro := coroutine.New[int, any](func() {
Expand Down Expand Up @@ -82,7 +82,7 @@ Often times, the simplest construct to drive coroutine executions is to use the
```go
package main

import "github.com/stealthrocket/coroutine"
import "github.com/dispatchrun/coroutine"

func main() {
coro := coroutine.New[int, any](func() {
Expand Down Expand Up @@ -174,7 +174,7 @@ storage medium and later reloaded to restart computation where it was left off.

To install the `coroc` compiler:
```
go install github.com/stealthrocket/coroutine/compiler/cmd/coroc@latest
go install github.com/dispatchrun/coroutine/compiler/cmd/coroc@latest
```

Then to compile a package:
Expand Down Expand Up @@ -233,7 +233,7 @@ import (
"log"
"os"

"github.com/stealthrocket/coroutine"
"github.com/dispatchrun/coroutine"
)

func work() {
Expand Down Expand Up @@ -313,7 +313,7 @@ decide that some values need specific logic to be functional upon
deserialization. See [the `coroutine/types` package][coro-types] for the tools
to take control of serialization of the coroutine state.

[coro-types]: https://pkg.go.dev/github.com/stealthrocket/coroutine/types
[coro-types]: https://pkg.go.dev/github.com/dispatchrun/coroutine/types

### Scheduling

Expand Down Expand Up @@ -354,5 +354,5 @@ Remember to be respectful and open minded!

## Community

- [Join us on Discord](https://stealthrocket.tech/discord)
- [Follow us on Twitter](https://twitter.com/_stealthrocket)
- [Join us on Discord](https://dispatch.run/discord)
- [Follow us on Twitter](https://twitter.com/_dispatchrun)
2 changes: 1 addition & 1 deletion buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: v1
managed:
enabled: true
go_package_prefix:
default: github.com/stealthrocket/coroutine/gen/proto/go
default: github.com/dispatchrun/coroutine/gen/proto/go

plugins:
- plugin: buf.build/protocolbuffers/go:v1.31.0
Expand Down
2 changes: 1 addition & 1 deletion compiler/cmd/coroc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"runtime/debug"
"runtime/pprof"

"github.com/stealthrocket/coroutine/compiler"
"github.com/dispatchrun/coroutine/compiler"
)

const usage = `
Expand Down
2 changes: 1 addition & 1 deletion compiler/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"golang.org/x/tools/go/ssa/ssautil"
)

const coroutinePackage = "github.com/stealthrocket/coroutine"
const coroutinePackage = "github.com/dispatchrun/coroutine"

// Compile compiles coroutines in a module.
//
Expand Down
6 changes: 3 additions & 3 deletions compiler/coroutine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"slices"
"testing"

"github.com/stealthrocket/coroutine"
. "github.com/stealthrocket/coroutine/compiler/testdata"
"github.com/stealthrocket/coroutine/types"
"github.com/dispatchrun/coroutine"
. "github.com/dispatchrun/coroutine/compiler/testdata"
"github.com/dispatchrun/coroutine/types"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion compiler/function.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func (c *compiler) generateFunctypes(p *packages.Package, f *ast.File, colors ma
}

if len(init.List) > 0 {
astutil.AddNamedImport(nil, f, "_types", "github.com/stealthrocket/coroutine/types")
astutil.AddNamedImport(nil, f, "_types", "github.com/dispatchrun/coroutine/types")

f.Decls = append(f.Decls,
&ast.FuncDecl{
Expand Down
2 changes: 1 addition & 1 deletion compiler/testdata/coroutine.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"
"unsafe"

"github.com/stealthrocket/coroutine"
"github.com/dispatchrun/coroutine"
)

//go:generate coroc
Expand Down
Loading

0 comments on commit 9aa62f9

Please sign in to comment.