Comments (8)
All those packages that are causing your problem (bytes
, fmt
, crypto/aes
, etc...) are the packages in the Go standard library. This makes me think your go installation is messed up and cannot find the standard library. Someone else had a similar issue here.
This probably means you cannot go get
anything right now (try something like go get -u github.com/golang/lint/golint
to be sure). Looking at your setup, the fact that your $GOROOT
is inside of your $GOPATH
is a very non-standard setup. Generally, after doing a standard installation your $GOROOT
will be something like /usr/local/go
.
I would try reinstalling/fixing your Go installation. If that doesn't work post back here with the output of go env
.
from fscrypt.
The go get -d github.com/google/fscrypt
was meant to make it easy to checkout all the source code into the correct place. I thought passing the -d
flag stopped that warning from coming up, but that's not the case. Let me figure out how to stop go
from warning you. It should just be performing a clone.
from fscrypt.
Thanks for the heads up @pepa65, let me know if this did fix it, or if you run into any other issues.
from fscrypt.
I might not understand, but go get -d github.com/google/fscrypt/...
gives:
package bytes: unrecognized import path "bytes" (import path does not begin with hostname)
package fmt: unrecognized import path "fmt" (import path does not begin with hostname)
package crypto/aes: unrecognized import path "crypto/aes" (import path does not begin with hostname)
package crypto/cipher: unrecognized import path "crypto/cipher" (import path does not begin with hostname)
package crypto/hmac: unrecognized import path "crypto/hmac" (import path does not begin with hostname)
package crypto/sha256: unrecognized import path "crypto/sha256" (import path does not begin with hostname)
package crypto/sha512: unrecognized import path "crypto/sha512" (import path does not begin with hostname)
package crypto/subtle: unrecognized import path "crypto/subtle" (import path does not begin with hostname)
package encoding/base32: unrecognized import path "encoding/base32" (import path does not begin with hostname)
package encoding/hex: unrecognized import path "encoding/hex" (import path does not begin with hostname)
package encoding/json: unrecognized import path "encoding/json" (import path does not begin with hostname)
package errors: unrecognized import path "errors" (import path does not begin with hostname)
package bufio: unrecognized import path "bufio" (import path does not begin with hostname)
package encoding: unrecognized import path "encoding" (import path does not begin with hostname)
package io: unrecognized import path "io" (import path does not begin with hostname)
package log: unrecognized import path "log" (import path does not begin with hostname)
package math: unrecognized import path "math" (import path does not begin with hostname)
package os: unrecognized import path "os" (import path does not begin with hostname)
package reflect: unrecognized import path "reflect" (import path does not begin with hostname)
package sort: unrecognized import path "sort" (import path does not begin with hostname)
package strconv: unrecognized import path "strconv" (import path does not begin with hostname)
package strings: unrecognized import path "strings" (import path does not begin with hostname)
package sync: unrecognized import path "sync" (import path does not begin with hostname)
package unicode/utf8: unrecognized import path "unicode/utf8" (import path does not begin with hostname)
package unsafe: unrecognized import path "unsafe" (import path does not begin with hostname)
package time: unrecognized import path "time" (import path does not begin with hostname)
package path: unrecognized import path "path" (import path does not begin with hostname)
package runtime: unrecognized import path "runtime" (import path does not begin with hostname)
package syscall: unrecognized import path "syscall" (import path does not begin with hostname)
package hash: unrecognized import path "hash" (import path does not begin with hostname)
package io/ioutil: unrecognized import path "io/ioutil" (import path does not begin with hostname)
package path/filepath: unrecognized import path "path/filepath" (import path does not begin with hostname)
package flag: unrecognized import path "flag" (import path does not begin with hostname)
package text/tabwriter: unrecognized import path "text/tabwriter" (import path does not begin with hostname)
package text/template: unrecognized import path "text/template" (import path does not begin with hostname)
package os/user: unrecognized import path "os/user" (import path does not begin with hostname)
package regexp: unrecognized import path "regexp" (import path does not begin with hostname)
But since the clone worked, I ran make
in /home/pp/go/src/github.com/google/fscrypt
and this led to:
go build --ldflags '-s -w -X "main.version=0.1.0-49-gd324300" -X "main.buildTime=Sun Jul 23 18:15:55 ICT 2017" -extldflags ""' -o fscrypt github.com/google/fscrypt/cmd/fscrypt
vendor/github.com/golang/protobuf/proto/text.go:37:2: cannot find package "bufio" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/bufio (vendor tree)
/home/pp/go/root/src/bufio (from $GOROOT)
/home/pp/go/src/bufio (from $GOPATH)
cmd/fscrypt/errors.go:25:2: cannot find package "bytes" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/bytes (vendor tree)
/home/pp/go/root/src/bytes (from $GOROOT)
/home/pp/go/src/bytes (from $GOPATH)
crypto/crypto.go:43:2: cannot find package "crypto/aes" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/crypto/aes (vendor tree)
/home/pp/go/root/src/crypto/aes (from $GOROOT)
/home/pp/go/src/crypto/aes (from $GOPATH)
crypto/crypto.go:44:2: cannot find package "crypto/cipher" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/crypto/cipher (vendor tree)
/home/pp/go/root/src/crypto/cipher (from $GOROOT)
/home/pp/go/src/crypto/cipher (from $GOPATH)
crypto/crypto.go:45:2: cannot find package "crypto/hmac" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/crypto/hmac (vendor tree)
/home/pp/go/root/src/crypto/hmac (from $GOROOT)
/home/pp/go/src/crypto/hmac (from $GOPATH)
crypto/crypto.go:46:2: cannot find package "crypto/sha256" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/crypto/sha256 (vendor tree)
/home/pp/go/root/src/crypto/sha256 (from $GOROOT)
/home/pp/go/src/crypto/sha256 (from $GOPATH)
crypto/crypto.go:47:2: cannot find package "crypto/sha512" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/crypto/sha512 (vendor tree)
/home/pp/go/root/src/crypto/sha512 (from $GOROOT)
/home/pp/go/src/crypto/sha512 (from $GOPATH)
crypto/key.go:31:2: cannot find package "crypto/subtle" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/crypto/subtle (vendor tree)
/home/pp/go/root/src/crypto/subtle (from $GOROOT)
/home/pp/go/src/crypto/subtle (from $GOPATH)
vendor/github.com/golang/protobuf/proto/text.go:39:2: cannot find package "encoding" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/encoding (vendor tree)
/home/pp/go/root/src/encoding (from $GOROOT)
/home/pp/go/src/encoding (from $GOPATH)
crypto/key.go:32:2: cannot find package "encoding/base32" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/encoding/base32 (vendor tree)
/home/pp/go/root/src/encoding/base32 (from $GOROOT)
/home/pp/go/src/encoding/base32 (from $GOPATH)
crypto/crypto.go:48:2: cannot find package "encoding/hex" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/encoding/hex (vendor tree)
/home/pp/go/root/src/encoding/hex (from $GOROOT)
/home/pp/go/src/encoding/hex (from $GOPATH)
vendor/github.com/golang/protobuf/jsonpb/jsonpb.go:43:2: cannot find package "encoding/json" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/encoding/json (vendor tree)
/home/pp/go/root/src/encoding/json (from $GOROOT)
/home/pp/go/src/encoding/json (from $GOPATH)
vendor/github.com/golang/protobuf/jsonpb/jsonpb.go:44:2: cannot find package "errors" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/errors (vendor tree)
/home/pp/go/root/src/errors (from $GOROOT)
/home/pp/go/src/errors (from $GOPATH)
cmd/fscrypt/flags.go:25:2: cannot find package "flag" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/flag (vendor tree)
/home/pp/go/root/src/flag (from $GOROOT)
/home/pp/go/src/flag (from $GOPATH)
cmd/fscrypt/commands.go:24:2: cannot find package "fmt" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/fmt (vendor tree)
/home/pp/go/root/src/fmt (from $GOROOT)
/home/pp/go/src/fmt (from $GOPATH)
vendor/golang.org/x/crypto/hkdf/hkdf.go:18:2: cannot find package "hash" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/hash (vendor tree)
/home/pp/go/root/src/hash (from $GOROOT)
/home/pp/go/src/hash (from $GOPATH)
vendor/github.com/golang/protobuf/proto/decode.go:41:2: cannot find package "io" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/io (vendor tree)
/home/pp/go/root/src/io (from $GOROOT)
/home/pp/go/src/io (from $GOPATH)
filesystem/filesystem.go:37:2: cannot find package "io/ioutil" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/io/ioutil (vendor tree)
/home/pp/go/root/src/io/ioutil (from $GOROOT)
/home/pp/go/src/io/ioutil (from $GOPATH)
vendor/github.com/golang/protobuf/proto/clone.go:38:2: cannot find package "log" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/log (vendor tree)
/home/pp/go/root/src/log (from $GOROOT)
/home/pp/go/src/log (from $GOPATH)
vendor/github.com/golang/protobuf/proto/text.go:44:2: cannot find package "math" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/math (vendor tree)
/home/pp/go/root/src/math (from $GOROOT)
/home/pp/go/src/math (from $GOPATH)
vendor/github.com/golang/protobuf/proto/decode.go:42:2: cannot find package "os" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/os (vendor tree)
/home/pp/go/root/src/os (from $GOROOT)
/home/pp/go/src/os (from $GOPATH)
cmd/fscrypt/prompt.go:26:2: cannot find package "os/user" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/os/user (vendor tree)
/home/pp/go/root/src/os/user (from $GOROOT)
/home/pp/go/src/os/user (from $GOPATH)
vendor/github.com/pkg/errors/stack.go:6:2: cannot find package "path" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/path (vendor tree)
/home/pp/go/root/src/path (from $GOROOT)
/home/pp/go/src/path (from $GOPATH)
filesystem/filesystem.go:40:2: cannot find package "path/filepath" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/path/filepath (vendor tree)
/home/pp/go/root/src/path/filepath (from $GOROOT)
/home/pp/go/src/path/filepath (from $GOPATH)
vendor/github.com/golang/protobuf/proto/clone.go:39:2: cannot find package "reflect" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/reflect (vendor tree)
/home/pp/go/root/src/reflect (from $GOROOT)
/home/pp/go/src/reflect (from $GOPATH)
cmd/fscrypt/flags.go:28:2: cannot find package "regexp" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/regexp (vendor tree)
/home/pp/go/root/src/regexp (from $GOROOT)
/home/pp/go/src/regexp (from $GOPATH)
package github.com/google/fscrypt/cmd/fscrypt
imports runtime: cannot find package "runtime" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/runtime (vendor tree)
/home/pp/go/root/src/runtime (from $GOROOT)
/home/pp/go/src/runtime (from $GOPATH)
package github.com/google/fscrypt/cmd/fscrypt
imports github.com/google/fscrypt/pam
imports runtime/cgo: cannot find package "runtime/cgo" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/runtime/cgo (vendor tree)
/home/pp/go/root/src/runtime/cgo (from $GOROOT)
/home/pp/go/src/runtime/cgo (from $GOPATH)
vendor/github.com/golang/protobuf/proto/encode.go:42:2: cannot find package "sort" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/sort (vendor tree)
/home/pp/go/root/src/sort (from $GOROOT)
/home/pp/go/src/sort (from $GOPATH)
vendor/github.com/golang/protobuf/proto/extensions.go:42:2: cannot find package "strconv" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/strconv (vendor tree)
/home/pp/go/root/src/strconv (from $GOROOT)
/home/pp/go/src/strconv (from $GOPATH)
vendor/github.com/golang/protobuf/proto/clone.go:40:2: cannot find package "strings" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/strings (vendor tree)
/home/pp/go/root/src/strings (from $GOROOT)
/home/pp/go/src/strings (from $GOPATH)
vendor/github.com/golang/protobuf/proto/extensions.go:43:2: cannot find package "sync" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/sync (vendor tree)
/home/pp/go/root/src/sync (from $GOROOT)
/home/pp/go/src/sync (from $GOPATH)
vendor/golang.org/x/sys/unix/env_unix.go:11:8: cannot find package "syscall" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/syscall (vendor tree)
/home/pp/go/root/src/syscall (from $GOROOT)
/home/pp/go/src/syscall (from $GOPATH)
vendor/github.com/urfave/cli/help.go:8:2: cannot find package "text/tabwriter" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/text/tabwriter (vendor tree)
/home/pp/go/root/src/text/tabwriter (from $GOROOT)
/home/pp/go/src/text/tabwriter (from $GOPATH)
vendor/github.com/urfave/cli/help.go:9:2: cannot find package "text/template" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/text/template (vendor tree)
/home/pp/go/root/src/text/template (from $GOROOT)
/home/pp/go/src/text/template (from $GOPATH)
vendor/github.com/golang/protobuf/jsonpb/jsonpb.go:51:2: cannot find package "time" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/time (vendor tree)
/home/pp/go/root/src/time (from $GOROOT)
/home/pp/go/src/time (from $GOPATH)
vendor/github.com/golang/protobuf/proto/text_parser.go:44:2: cannot find package "unicode/utf8" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/unicode/utf8 (vendor tree)
/home/pp/go/root/src/unicode/utf8 (from $GOROOT)
/home/pp/go/src/unicode/utf8 (from $GOPATH)
vendor/github.com/golang/protobuf/proto/pointer_unsafe.go:40:2: cannot find package "unsafe" in any of:
/home/pp/go/src/github.com/google/fscrypt/vendor/unsafe (vendor tree)
/home/pp/go/root/src/unsafe (from $GOROOT)
/home/pp/go/src/unsafe (from $GOPATH)
Makefile:88: recipe for target 'fscrypt' failed
make: *** [fscrypt] Error 1
from fscrypt.
Thanks for your help. There are 400 golang packages in my repo... I have 6 of them installed by choosing golang-go. I probably need to install some more, but I am not going to install all 400.
Do you know if a single binary is distributed somewhere for linux/amd64? Go is famous for single binaries that work..!
from fscrypt.
I can put up a binary release, but fscrypt does not depend on any external packages. All the dependancies are vendored with the tool. It looks like your $GOROOT
is set incorrectly, because you don't even have the fmt
or os
packages visible.
from fscrypt.
On ubuntu 16.04, I was able to fix this problem by installing a more up to date version of go, anything lower than go 1.13 gave me different type set of issues.
https://tecadmin.net/install-go-on-ubuntu/
from fscrypt.
@ronymos, this a 2.5 years old closed issue. If you're still having a problem, please file a new issue.
Also note that the latest version of fscrypt
is documented to require Go 1.11 or later.
from fscrypt.
Related Issues (20)
- "fscrypt metadata add-protector-to-policy" doesn't work in key files HOT 1
- Poor scriptability due to --name not being easily checkable HOT 2
- failureExitCode should return higher number than 1 if user tries to lock an already locked file
- Deleting files from folder encrypted with fscrypt HOT 4
- Partial Decrypt HOT 3
- fscrypt tests fail on non x86_64 arches (aarch64, ppc64le, s390x) HOT 7
- How to resolve "Some processes can't access unlocked encrypted files"? HOT 2
- Should we make the fscrypt metadata harder to delete? HOT 2
- multiple login nodes (multiple lustre client), how should I correctly apply the fscrypt tool to encrypt files under shared storage? HOT 1
- Unlocking of encrypted directory inside of disk partition image does not work while fscrypt confirms "ready for use" HOT 4
- Generate `fscrypt.conf` with Adiantum as the encryption mode HOT 2
- How to unlock encrypted regular files located in an unencrypted directory? HOT 8
- Obscure error message due to process address space limit HOT 5
- A question: how does diectory know what policy protects it? HOT 12
- Is it good Idea to copy and reuse policy on other device? Is it good idea to copy and reuse a protector? HOT 2
- fscrypt on CephFS does not recognize locked directories upon remount HOT 7
- fscrypt on CephFS: no buffer space available HOT 1
- Can't lock folders encrypted with fscrypt HOT 8
- Inability to change fscrypt's default directory HOT 1
- pam_fscrypt probably locks too much memory HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fscrypt.