GithubHelp home page GithubHelp logo

osutil's People

Contributors

deejgregor avatar mishas avatar tredoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

osutil's Issues

Incompatible dependency

# github.com/kless/osutil/user
/root/gocode/src/github.com/kless/osutil/user/config_linux.go:116: undefined: goutil.SetPrefix
/root/gocode/src/github.com/kless/osutil/user/config_linux.go:126: undefined: goutil.Println
/root/gocode/src/github.com/kless/osutil/user/config_linux.go:147: undefined: goutil.Println
/root/gocode/src/github.com/kless/osutil/user/config_linux.go:173: undefined: goutil.Println
/root/gocode/src/github.com/kless/osutil/user/config_linux.go:205: undefined: goutil.Println

Travis failed

github.com/tredoe/[email protected] requires github.com/tredoe/[email protected]: reading github.com/tredoe/fileutil/go.mod at revision v1.0.0: unknown revision v1.0.0

Did it change recently? My project's travis worked normally yesterday.

Different go.sum entries for different Go versions

When I generate go.sum with go 1.16, and try to build it with go of a different version (1.13 in my case), I get SECURITY ERROR:

verifying github.com/tredoe/[email protected]/go.mod: checksum mismatch
	downloaded: h1:fx79htI3WZA9Ep4jphLFq06l3iRDimfOWTrkKOz+OAA=
	go.sum:     h1:wHEjPMepmXQXkZhf9H4sQcCtmC45KuFo5VR97zG9/dY=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

Then I fix (remove the entry and run go mod tidy) go.sum and try to build it again. It works with 1.13, but the problem appears then with 1.16.

Currently, as a workaround, I added this to my build scripts:

sed -i /osutil/d go.sum \
  && go mod download github.com/tredoe/osutil

but it is not a real solution, of course.

I have several hundreds of packages in go.sum, and the problem occurs only with this one, so I suspect there should be some version specific incompatibility in this package (I tested it with Go 1.13 and 1.16 only; not sure exactly when it was introduced, so don't know about 1.14 and 1.15).

Related information/discussions:

breaking changes

This repo is currently tagged with a stable version, however several breaking changes have been introduced since v1.0.5. Should we expect more such changes in the future, or can you commit to following semver, as go modules require?

i can't use v1.1.1, need help

`go: github.com/tredoe/[email protected]: verifying go.mod: checksum mismatch
downloaded: h1:wHEjPMepmXQXkZhf9H4sQcCtmC45KuFo5VR97zG9/dY=
sum.golang.org: h1:fx79htI3WZA9Ep4jphLFq06l3iRDimfOWTrkKOz+OAA=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.`

github.com/tredoe/[email protected] requires github.com/tredoe/[email protected]

I am sorry for creating a new issue for the same problem, but after the recent changes (today? yesterday?) it is not even possible to compile any project that uses tredoe/osutil so all CI jobs are red now.

The problem:

go: github.com/tredoe/[email protected] requires
	github.com/tredoe/[email protected]: reading github.com/tredoe/goutil/go.mod at revision v1.0.2: unknown revision v1.0.2

I wonder where the 1.3.5 version comes from; go.sum references v1.0.6.

Anyway, this is broken now.

sh module failing tests

We see failing tests for sh module when building under Debian pbuilder environment:

=== RUN   TestRun
--- FAIL: TestRun (0.01s)
	sh_test.go:63: `ls ~/` (match): expected true, found false
	sh_test.go:67: `ls ~/`: output is empty
	sh_test.go:75: `find -name 'sh*.go'` (output): expected "./sh.go\n./sh_test.go\n", found "./sh_test.go\n./sh.go\n"
	sh_test.go:87: `LANG=C find -nop README.md` (error): expected "find: unknown predicate `-nop'", found "find: unknown predicate `-nop'\nTry 'find --help' for more information."
FAIL
FAIL	github.com/tredoe/osutil/sh	0.017s

Our stretch environments have findutils 4.6.0+git+20161106-2 .

Wonder if we're missing some Go env vars while attempting to package?

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.