Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"go get -u github.com/tdewolff/minify/cmd/minify" gives "package io/fs: unrecognized import path "io/fs": import path does not begin with hostname" #388

Closed
shlomif opened this issue Mar 13, 2021 · 8 comments

Comments

@shlomif
Copy link
Contributor

shlomif commented Mar 13, 2021

[shlomif@localhost ~]$ go get -u github.com/tdewolff/minify/cmd/minify
package io/fs: unrecognized import path "io/fs": import path does not begin with hostname
[shlomif@localhost ~]$ inxi -CSG                                      
System:
  Host: fedora Kernel: 5.10.21-200.fc33.x86_64 x86_64 bits: 64 
  Desktop: Xfce 4.14.3 Distro: Fedora release 33 (Thirty Three) 
CPU:
  Info: Quad Core model: Intel Core i5-8259U bits: 64 type: MT MCP 
  L2 cache: 6 MiB 
  Speed: 3500 MHz min/max: 400/3800 MHz Core speeds (MHz): 1: 3500 2: 3500 
  3: 3500 4: 3501 5: 3500 6: 3499 7: 3500 8: 3500 
Graphics:
  Device-1: Intel CoffeeLake-U GT3e [Iris Plus Graphics 655] driver: N/A 
  Display: server: Fedora Project X.org 1.20.10 driver: loaded: vesa 
  unloaded: fbdev,modesetting resolution: 1920x1080~77Hz 
  OpenGL: renderer: llvmpipe (LLVM 11.0.0 256 bits) v: 4.5 Mesa 20.3.4 
[shlomif@localhost ~]$ 
@tdewolff
Copy link
Owner

This must be because you're using a version of Go less than 1.16. Let me see if I can circumvent the usage of the fs package!

@shlomif
Copy link
Contributor Author

shlomif commented Mar 14, 2021

This must be because you're using a version of Go less than 1.16. Let me see if I can circumvent the usage of the fs package!

Thanks!

@tdewolff
Copy link
Owner

I've removed the dependency on the io/fs package, please let me know if this works!

@tdewolff
Copy link
Owner

Hm not entirely, looks like a lot of new functionality was added in 1.16 that I'd gladly use instead of copy. Can you switch to Go1.16?

@shlomif
Copy link
Contributor Author

shlomif commented Mar 14, 2021

Hm not entirely, looks like a lot of new functionality was added in 1.16 that I'd gladly use instead of copy. Can you switch to Go1.16?

I'll need to find out non-intrusive ways of upgrading to golang 1.16 on:

  • fedora 33 x86-64
  • debian bullseye
  • travis-ci/etc.

@shlomif
Copy link
Contributor Author

shlomif commented Mar 17, 2021

Hi! Why was this issue closed? "Don't be a dick"/etc.: https://www.shlomifish.org/philosophy/philosophy/putting-cards-on-the-table-2019-2020/putting-cards-on-the-table-2019-2020/benevolent-psychological-warfare.xhtml . The fact is that neither fedora 33 nor debian testing ( https://wiki.debian.org/DebianBullseye ) contain golang1.16, which puts me (and likely many other future users) between a rock and a hard place. Also see: https://www.shlomifish.org/humour/fortunes/show.cgi?id=joel-remarkable-customer-service-3 .

@tdewolff
Copy link
Owner

Should work for Go1.13 now

@shlomif
Copy link
Contributor Author

shlomif commented Mar 17, 2021

@tdewolff : thanks! ♥️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants