Coder Social home page Coder Social logo

cznic / internal Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 4.0 22 KB

github.com/cznic/internal has moved to modernc.org/internal

Home Page: https://godoc.org/modernc.org/internal

License: BSD 3-Clause "New" or "Revised" License

Makefile 12.25% Go 87.75%

internal's Issues

New release that contains buffer.Bytes?

I'm trying to use github.com/cznic/cc/v2 in a project that uses dep. Unfortunately, dep doesn't seem to spot the dependency chain: cc -> ir -> internal/buffer

I have to solve this by specifying both projects as 'required' in my Gopkg.toml:

required = ["github.com/cznic/ir", "github.com/cznic/internal/buffer"]

This causes dep to pick up v1.0.0 of internal/buffer, which is missing the definition of buffer.Bytes.

I think cutting another release would solve this.

Support of vgo

Package named internal can't be currently imported using vgo (issue golang/go#23970). This situation at least prevents importing module github.com/cznic/lldb (and transitively github.com/cznic/ql) and also intra-dependency import of "github.com/cznic/internal/slice" in buffer/buffer.go.

Please consider "renaming" this repo (with respect to backward compatibility) or make this package "stable" by integrating it into LLDB (#3).

$ mkdir example && cd example
$ echo "module example" > go.mod
$ echo -e "package main\n\nimport _ \"github.com/cznic/ql\"\n\nfunc main () {}" > main.go
$ vgo build
... some successful imports ...
..\..\..\v\github.com\cznic\[email protected]\btree.go:16:2: use of internal package not allowed
..\..\..\v\github.com\cznic\[email protected]\memfiler.go:13:2: use of internal package not allowed
..\..\..\v\github.com\cznic\[email protected]\buffer\buffer.go:36:2: use of internal package not allowed

internal

Hi @cznic,

When I noticed you creating this repository it reminded me of something I've been thinking of for a while. Would you reckon that none of @internal's repositories (https://github.com/internal) may be imported by 3rd parties?

Cheers /u

slice test fails (with go 1.8 on s390)

I'm packaging this project for fedora as a dependency for some other packages (cznic-ql, syncthing, etc.). I just noticed that tests fail on fedora rawhide (go 1.8), but only on the s390 architecture (tests pass on all other architectures).

This might indicate a race condition in your code (or tests), since build VMs are usually not all equally fast (or equally performant), and the s390 builders were unusually busy today.

The exact failure message is:

+ go test -compiler gc -ldflags '' github.com/cznic/internal/buffer
ok  	github.com/cznic/internal/buffer	1.038s
+ go test -compiler gc -ldflags '' github.com/cznic/internal/file
ok  	github.com/cznic/internal/file	1.622s
+ go test -compiler gc -ldflags '' github.com/cznic/internal/slice
--- FAIL: Test (0.00s)
	nonrace_test.go:37: 1
FAIL
FAIL	github.com/cznic/internal/slice	0.385s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.