Skip to content

Commit 0ae0943

Browse files
authored
export olin symbols (#95)
* export olin symbols * fix
1 parent d6c8776 commit 0ae0943

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+25
-23
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ WORKDIR /olin
2020
COPY . .
2121
COPY --from=rust-wasm-tools /olin/cwagi.wasm ./cmd/cwa-cgi/testdata/test.wasm
2222
COPY --from=rust-wasm-tools /olin/cwa-tests.wasm ./cmd/cwa/testdata/test.wasm
23-
RUN GOARCH=wasm GOOS=js go build -o ./cmd/cwa/testdata/go.wasm ./internal/abi/wasmgo/testdata/nothing.go
23+
RUN GOARCH=wasm GOOS=js go build -o ./cmd/cwa/testdata/go.wasm ./abi/wasmgo/testdata/nothing.go
2424
RUN go test -v ./cmd/... ./internal/...
2525
RUN GOBIN=/usr/local/bin go install ./cmd/cwa-cgi
2626
RUN GOBIN=/usr/local/bin go install ./cmd/cwa
2727

28-
FROM xena/zig:0.4.0-0f8fc3b9 AS zig
28+
FROM xena/zig:0.5.0 AS zig
2929
WORKDIR /olin
3030
COPY ./zig .
3131
COPY --from=go /usr/local/bin/cwa /usr/local/bin/cwa

internal/abi/abi.go abi/abi.go

File renamed without changes.

internal/abi/cwa/c.go abi/cwa/c.go

File renamed without changes.

internal/abi/cwa/core.go abi/cwa/core.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"os"
99

1010
"github.com/perlin-network/life/exec"
11-
"within.website/olin/internal/abi"
11+
"within.website/olin/abi"
1212
)
1313

1414
// NewProcess creates a new process with the given name, arguments and environment.

internal/abi/cwa/core_test.go abi/cwa/core_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package cwa
22

3-
import "within.website/olin/internal/abi"
3+
import "within.website/olin/abi"
44

55
var (
66
_ abi.ABI = &Process{}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

internal/abi/cwa/io.go abi/cwa/io.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cwa
33
import (
44
"math/rand"
55

6-
"within.website/olin/internal/fileresolver"
6+
"within.website/olin/fileresolver"
77
)
88

99
func (p *Process) IOGetStdin() int32 {
File renamed without changes.
File renamed without changes.
File renamed without changes.

internal/abi/cwa/resource.go abi/cwa/resource.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"net/url"
77
"os"
88

9-
"within.website/olin/internal/abi"
10-
"within.website/olin/internal/fileresolver"
9+
"within.website/olin/abi"
10+
"within.website/olin/fileresolver"
1111
)
1212

1313
func (p *Process) ResourceOpen(urlPtr, urlLen uint32) (int32, error) {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

internal/abi/dagger/process.go abi/dagger/process.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"strconv"
1010

1111
"github.com/perlin-network/life/exec"
12-
"within.website/olin/internal/abi"
13-
"within.website/olin/internal/fileresolver"
12+
"within.website/olin/abi"
13+
"within.website/olin/fileresolver"
1414
)
1515

1616
// Process is a higher level wrapper around a set of files for dagger

internal/abi/dagger/process_test.go abi/dagger/process_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/perlin-network/life/compiler"
1313
"github.com/perlin-network/life/exec"
14-
"within.website/olin/internal/fileresolver"
14+
"within.website/olin/fileresolver"
1515
)
1616

1717
func getFunctionName(i interface{}) string {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

internal/abi/wasmgo/wasmgo.go abi/wasmgo/wasmgo.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"time"
77

88
"github.com/perlin-network/life/exec"
9-
"within.website/olin/internal/abi/cwa"
10-
"within.website/olin/internal/fileresolver"
9+
"within.website/olin/abi/cwa"
10+
"within.website/olin/fileresolver"
1111
)
1212

1313
type WasmGo struct {

cmd/cwa-cgi/main_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/perlin-network/life/exec"
1919
"within.website/ln"
2020
"within.website/ln/opname"
21-
"within.website/olin/internal/abi/cwa"
21+
"within.website/olin/abi/cwa"
2222
)
2323

2424
type vmServer struct {

cmd/cwa/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313

1414
"github.com/perlin-network/life/compiler"
1515
"github.com/perlin-network/life/exec"
16-
"within.website/olin/internal/abi/cwa"
17-
"within.website/olin/internal/abi/wasmgo"
16+
"within.website/olin/abi/cwa"
17+
"within.website/olin/abi/wasmgo"
1818
)
1919

2020
var (
File renamed without changes.

internal/fileresolver/http.go fileresolver/http.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"net/url"
1010
"os"
1111

12-
"within.website/olin/internal/abi"
12+
"within.website/olin/abi"
1313
)
1414

1515
// HTTP creates a new HTTP transport that pretends to be a file. A process can
File renamed without changes.

internal/fileresolver/log.go fileresolver/log.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"io"
55
"log"
66

7-
"within.website/olin/internal/abi"
7+
"within.website/olin/abi"
88
)
99

1010
// Log returns a file that redirects all write calls to a standard library logger
File renamed without changes.

internal/fileresolver/null.go fileresolver/null.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package fileresolver
22

3-
import "within.website/olin/internal/abi"
3+
import "within.website/olin/abi"
44

55
// Null is a file that emulates /dev/null on Linux.
66
//
File renamed without changes.

internal/fileresolver/osfile.go fileresolver/osfile.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package fileresolver
55
import (
66
"syscall"
77

8-
"within.website/olin/internal/abi"
8+
"within.website/olin/abi"
99
)
1010

1111
// OSFile implements File backed by a raw operating system file.

internal/fileresolver/partial.go fileresolver/partial.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"errors"
55
"io"
66

7-
"within.website/olin/internal/abi"
7+
"within.website/olin/abi"
88
)
99

1010
// Errors exposed by partial.go

internal/fileresolver/random.go fileresolver/random.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package fileresolver
33
import (
44
"crypto/rand"
55

6-
"within.website/olin/internal/abi"
6+
"within.website/olin/abi"
77
)
88

99
// Random returns a file that reads cryptographically random data.
File renamed without changes.

internal/fileresolver/zero.go fileresolver/zero.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package fileresolver
22

3-
import "within.website/olin/internal/abi"
3+
import "within.website/olin/abi"
44

55
// Zero is a file that does nothing.
66
//
File renamed without changes.

go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ require (
1010
github.com/prometheus/client_golang v1.1.0
1111
within.website/ln v0.6.0
1212
)
13+
14+
go 1.13

internal/cwagi/cwagi.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
"github.com/prometheus/client_golang/prometheus/promauto"
2020
"within.website/ln"
2121
"within.website/ln/opname"
22-
"within.website/olin/internal/abi/cwa"
22+
"within.website/olin/abi/cwa"
2323
)
2424

2525
var (
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)