~tsileo/gluarequire2

995f9d9f3f0ce86d573aa247413ba18ce1e8258b — Thomas Sileo 10 months ago 66e0eb2
Switch to go mod and cleanup
6 files changed, 25 insertions(+), 10 deletions(-)

A .build.yml
D .travis.yml
M README.md
M gluarequire2.go
A go.mod
A go.sum
A .build.yml => .build.yml +12 -0
@@ 0,0 1,12 @@
image: ubuntu/latest
sources:
- https://git.sr.ht/~tsileo/gluarequire2
tasks:
- setup: |
   mkdir go
   export GOPATH=/home/build/go
   wget https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz
   sudo tar -C /usr/local -xzf go1.13.4.linux-amd64.tar.gz
- test: |
    cd blobsfile
    /usr/local/go/bin/go test -v .

D .travis.yml => .travis.yml +0 -8
@@ 1,8 0,0 @@
language: go

go:
  - 1.8

go_import_path: a4.io/gluarequire2
script:
  - go test -v .

M README.md => README.md +1 -1
@@ 1,6 1,6 @@
# gluarequire2

[![Build Status](https://travis-ci.org/tsileo/gluarequire2.svg?branch=master)](https://travis-ci.org/tsileo/gluarequire2)
[![builds.sr.ht status](https://builds.sr.ht/~tsileo/gluarequire2.svg)](https://builds.sr.ht/~tsileo/gluarequire2?)
   [![Godoc Reference](https://godoc.org/a4.io/gluarequire2?status.svg)](https://godoc.org/a4.io/gluarequire2)

gluarequire2 provides a way to import file directly from GitHub using [GopherLua](https://github.com/yuin/gopher-lua).

M gluarequire2.go => gluarequire2.go +1 -1
@@ 28,7 28,7 @@ func (r *require2) require2(L *lua.LState) int {
	if r.RequireSetuper != nil {
		newName, err := r.RequireSetuper.Setup(L, name)
		if err != nil {
			L.ArgError(1, fmt.Sprintf("failed call the setup func", err.Error()))
			L.ArgError(1, fmt.Sprintf("failed call the setup func: %v", err.Error()))
			return 0
		}
		name = newName

A go.mod => go.mod +5 -0
@@ 0,0 1,5 @@
module a4.io/gluarequire2

go 1.13

require github.com/yuin/gopher-lua v0.0.0-20191220021717-ab39c6098bdb

A go.sum => go.sum +6 -0
@@ 0,0 1,6 @@
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
github.com/yuin/gopher-lua v0.0.0-20191220021717-ab39c6098bdb h1:ZkM6LRnq40pR1Ox0hTHlnpkcOTuFIDQpZ1IN8rKKhX0=
github.com/yuin/gopher-lua v0.0.0-20191220021717-ab39c6098bdb/go.mod h1:gqRgreBUhTSL0GeU64rtZ3Uq3wtjOa/TB2YfrtkCbVQ=
golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=