dennwc / inkview

Go SDK for Pocketbook
MIT License
34 stars 5 forks source link

Another Question: How to add other go modules? #3

Closed Skeeve closed 3 years ago

Skeeve commented 3 years ago

I'm trying to build an app using github.com/mattn/go-sqlite3 but run into all sorts of weird issues.

Maybe mostly due to the fact that I still do not fully understand go…

I understood that I need to install git into the dockerimage, but when I try to get github.com/mattn/go-sqlite3 the error is

go/bin/go get github.com/mattn/go-sqlite3
package context: unrecognized import path "context" (import path does not begin with hostname)
package crypto/sha1: unrecognized import path "crypto/sha1" (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 database/sql: unrecognized import path "database/sql" (import path does not begin with hostname)
package database/sql/driver: unrecognized import path "database/sql/driver" (import path does not begin with hostname)
package errors: unrecognized import path "errors" (import path does not begin with hostname)
package fmt: unrecognized import path "fmt" (import path does not begin with hostname)
package io: unrecognized import path "io" (import path does not begin with hostname)
package math: unrecognized import path "math" (import path does not begin with hostname)
package net/url: unrecognized import path "net/url" (import path does not begin with hostname)
package reflect: unrecognized import path "reflect" (import path does not begin with hostname)
package runtime: unrecognized import path "runtime" (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 syscall: unrecognized import path "syscall" (import path does not begin with hostname)
package time: unrecognized import path "time" (import path does not begin with hostname)
package unsafe: unrecognized import path "unsafe" (import path does not begin with hostname)
Skeeve commented 3 years ago

Got it working.