all: update import paths to github.com/tinygo-org/tinygo

Этот коммит содержится в:
Ayke van Laethem 2019-01-31 17:43:19 +01:00
родитель 504c82a0e7
коммит 914d383a96
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: E97FF5335DFDFDED
10 изменённых файлов: 34 добавлений и 34 удалений

Просмотреть файл

@ -15,7 +15,7 @@ install:
- dep ensure --vendor-only - dep ensure --vendor-only
script: script:
- go install github.com/aykevl/tinygo - go install github.com/tinygo-org/tinygo
- go test -v . - go test -v .
- make gen-device - make gen-device
- tinygo build -o blinky1.nrf.elf -target=pca10040 examples/blinky1 - tinygo build -o blinky1.nrf.elf -target=pca10040 examples/blinky1

Просмотреть файл

@ -8,18 +8,18 @@ RUN wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - && \
RUN wget -O- https://raw.githubusercontent.com/golang/dep/master/install.sh | sh RUN wget -O- https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
COPY . /go/src/github.com/aykevl/tinygo COPY . /go/src/github.com/tinygo-org/tinygo
RUN cd /go/src/github.com/aykevl/tinygo/ && \ RUN cd /go/src/github.com/tinygo-org/tinygo/ && \
dep ensure --vendor-only && \ dep ensure --vendor-only && \
go install /go/src/github.com/aykevl/tinygo/ go install /go/src/github.com/tinygo-org/tinygo/
# tinygo-wasm stage installs the needed dependencies to compile TinyGo programs for WASM. # tinygo-wasm stage installs the needed dependencies to compile TinyGo programs for WASM.
FROM tinygo-base AS tinygo-wasm FROM tinygo-base AS tinygo-wasm
COPY --from=tinygo-base /go/bin/tinygo /go/bin/tinygo COPY --from=tinygo-base /go/bin/tinygo /go/bin/tinygo
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/src /go/src/github.com/aykevl/tinygo/src COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/src /go/src/github.com/tinygo-org/tinygo/src
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/targets /go/src/github.com/aykevl/tinygo/targets COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/targets /go/src/github.com/tinygo-org/tinygo/targets
RUN wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - && \ RUN wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - && \
echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main" >> /etc/apt/sources.list && \ echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch-7 main" >> /etc/apt/sources.list && \
@ -30,13 +30,13 @@ RUN wget -O- https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - && \
FROM tinygo-base AS tinygo-avr FROM tinygo-base AS tinygo-avr
COPY --from=tinygo-base /go/bin/tinygo /go/bin/tinygo COPY --from=tinygo-base /go/bin/tinygo /go/bin/tinygo
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/src /go/src/github.com/aykevl/tinygo/src COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/src /go/src/github.com/tinygo-org/tinygo/src
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/targets /go/src/github.com/aykevl/tinygo/targets COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/targets /go/src/github.com/tinygo-org/tinygo/targets
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/Makefile /go/src/github.com/aykevl/tinygo/ COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/Makefile /go/src/github.com/tinygo-org/tinygo/
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/tools /go/src/github.com/aykevl/tinygo/tools COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/tools /go/src/github.com/tinygo-org/tinygo/tools
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/lib /go/src/github.com/aykevl/tinygo/lib COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/lib /go/src/github.com/tinygo-org/tinygo/lib
RUN cd /go/src/github.com/aykevl/tinygo/ && \ RUN cd /go/src/github.com/tinygo-org/tinygo/ && \
apt-get update && \ apt-get update && \
apt-get install -y apt-utils python3 make binutils-avr gcc-avr avr-libc && \ apt-get install -y apt-utils python3 make binutils-avr gcc-avr avr-libc && \
make gen-device-avr && \ make gen-device-avr && \
@ -48,13 +48,13 @@ RUN cd /go/src/github.com/aykevl/tinygo/ && \
FROM tinygo-base AS tinygo-arm FROM tinygo-base AS tinygo-arm
COPY --from=tinygo-base /go/bin/tinygo /go/bin/tinygo COPY --from=tinygo-base /go/bin/tinygo /go/bin/tinygo
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/src /go/src/github.com/aykevl/tinygo/src COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/src /go/src/github.com/tinygo-org/tinygo/src
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/targets /go/src/github.com/aykevl/tinygo/targets COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/targets /go/src/github.com/tinygo-org/tinygo/targets
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/Makefile /go/src/github.com/aykevl/tinygo/ COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/Makefile /go/src/github.com/tinygo-org/tinygo/
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/tools /go/src/github.com/aykevl/tinygo/tools COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/tools /go/src/github.com/tinygo-org/tinygo/tools
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/lib /go/src/github.com/aykevl/tinygo/lib COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/lib /go/src/github.com/tinygo-org/tinygo/lib
RUN cd /go/src/github.com/aykevl/tinygo/ && \ RUN cd /go/src/github.com/tinygo-org/tinygo/ && \
apt-get update && \ apt-get update && \
apt-get install -y apt-utils python3 make binutils-arm-none-eabi clang-7 && \ apt-get install -y apt-utils python3 make binutils-arm-none-eabi clang-7 && \
make gen-device-nrf && make gen-device-stm32 && \ make gen-device-nrf && make gen-device-stm32 && \
@ -65,11 +65,11 @@ RUN cd /go/src/github.com/aykevl/tinygo/ && \
# tinygo-all stage installs the needed dependencies to compile TinyGo programs for all platforms. # tinygo-all stage installs the needed dependencies to compile TinyGo programs for all platforms.
FROM tinygo-wasm AS tinygo-all FROM tinygo-wasm AS tinygo-all
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/Makefile /go/src/github.com/aykevl/tinygo/ COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/Makefile /go/src/github.com/tinygo-org/tinygo/
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/tools /go/src/github.com/aykevl/tinygo/tools COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/tools /go/src/github.com/tinygo-org/tinygo/tools
COPY --from=tinygo-base /go/src/github.com/aykevl/tinygo/lib /go/src/github.com/aykevl/tinygo/lib COPY --from=tinygo-base /go/src/github.com/tinygo-org/tinygo/lib /go/src/github.com/tinygo-org/tinygo/lib
RUN cd /go/src/github.com/aykevl/tinygo/ && \ RUN cd /go/src/github.com/tinygo-org/tinygo/ && \
apt-get update && \ apt-get update && \
apt-get install -y apt-utils python3 make binutils-arm-none-eabi clang-7 binutils-avr gcc-avr avr-libc && \ apt-get install -y apt-utils python3 make binutils-arm-none-eabi clang-7 binutils-avr gcc-avr avr-libc && \
make gen-device && \ make gen-device && \

Просмотреть файл

@ -1,6 +1,6 @@
# TinyGo - Go compiler for microcontrollers # TinyGo - Go compiler for microcontrollers
[![Build Status](https://travis-ci.com/aykevl/tinygo.svg?branch=master)](https://travis-ci.com/aykevl/tinygo) [![Build Status](https://travis-ci.com/aykevl/tinygo.svg?branch=master)](https://travis-ci.com/tinygo-org/tinygo)
> We never expected Go to be an embedded language and so it's got serious > We never expected Go to be an embedded language and so it's got serious
> problems [...]. > problems [...].
@ -166,7 +166,7 @@ If you want to contribute, here are some suggestions:
requires a few compiler changes, but if the architecture is supported you requires a few compiler changes, but if the architecture is supported you
can try implementing support for a new chip or board in `src/runtime`. For can try implementing support for a new chip or board in `src/runtime`. For
details, see [this wiki entry on adding details, see [this wiki entry on adding
archs/chips/boards](https://github.com/aykevl/tinygo/wiki/Adding-a-new-board). archs/chips/boards](https://github.com/tinygo-org/tinygo/wiki/Adding-a-new-board).
* Microcontrollers have lots of peripherals and many don't have an * Microcontrollers have lots of peripherals and many don't have an
implementation yet in the `machine` package. Adding support for new implementation yet in the `machine` package. Adding support for new
peripherals is very useful. peripherals is very useful.

Просмотреть файл

@ -14,8 +14,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/aykevl/tinygo/ir" "github.com/tinygo-org/tinygo/ir"
"github.com/aykevl/tinygo/loader" "github.com/tinygo-org/tinygo/loader"
"golang.org/x/tools/go/ssa" "golang.org/x/tools/go/ssa"
"tinygo.org/x/go-llvm" "tinygo.org/x/go-llvm"
) )

Просмотреть файл

@ -14,7 +14,7 @@ package compiler
// frames. // frames.
import ( import (
"github.com/aykevl/tinygo/ir" "github.com/tinygo-org/tinygo/ir"
"golang.org/x/tools/go/ssa" "golang.org/x/tools/go/ssa"
"tinygo.org/x/go-llvm" "tinygo.org/x/go-llvm"
) )

Просмотреть файл

@ -9,7 +9,7 @@ import (
"go/token" "go/token"
"go/types" "go/types"
"github.com/aykevl/tinygo/ir" "github.com/tinygo-org/tinygo/ir"
"golang.org/x/tools/go/ssa" "golang.org/x/tools/go/ssa"
"tinygo.org/x/go-llvm" "tinygo.org/x/go-llvm"
) )

Просмотреть файл

@ -7,7 +7,7 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/aykevl/tinygo/loader" "github.com/tinygo-org/tinygo/loader"
"golang.org/x/tools/go/ssa" "golang.org/x/tools/go/ssa"
"tinygo.org/x/go-llvm" "tinygo.org/x/go-llvm"
) )

Просмотреть файл

@ -15,9 +15,9 @@ import (
"strings" "strings"
"syscall" "syscall"
"github.com/aykevl/tinygo/compiler" "github.com/tinygo-org/tinygo/compiler"
"github.com/aykevl/tinygo/interp" "github.com/tinygo-org/tinygo/interp"
"github.com/aykevl/tinygo/loader" "github.com/tinygo-org/tinygo/loader"
) )
var commands = map[string]string{ var commands = map[string]string{

Просмотреть файл

@ -10,7 +10,7 @@ type volatileByte byte
// //
// It has some limitations currently due to how "volatile" variables that are // It has some limitations currently due to how "volatile" variables that are
// members of a struct are not compiled correctly by TinyGo. // members of a struct are not compiled correctly by TinyGo.
// See https://github.com/aykevl/tinygo/issues/151 for details. // See https://github.com/tinygo-org/tinygo/issues/151 for details.
type RingBuffer struct { type RingBuffer struct {
rxbuffer [bufferSize]volatileByte rxbuffer [bufferSize]volatileByte
head volatileByte head volatileByte

2
testdata/slice.go предоставленный
Просмотреть файл

@ -92,7 +92,7 @@ func main() {
} }
println() println()
// Verify the fix in https://github.com/aykevl/tinygo/pull/119 // Verify the fix in https://github.com/tinygo-org/tinygo/pull/119
var unnamed [32]byte var unnamed [32]byte
var named MySlice var named MySlice
assert(len(unnamed[:]) == 32) assert(len(unnamed[:]) == 32)