Hi! > On 09/04/25 11:18 pm, Otto Kekäläinen wrote: > > I am still working on this > > https://salsa.debian.org/go-team/packages/usql/-/merge_requests/1 > > > > Currently I am stuck with another build scope issue. Any tips from anyone? > > > > Seems the tests depend on files that the build system does not copy, > > and Go tests fail. > > Part-1: > > It does not seem to be that. I see several of > > | # github.com/xo/usql/internal > | src/github.com/xo/usql/drivers/sqlserver/sqlserver.go:21:2: cannot find > package "github.com/microsoft/go-mssqldb/ > | azuread" in any of: > > But this should be excluded anyway as you are not building that driver right? > > I think you also need to pass in the TAGS to dh_auto_test. Here's an example > for you > > https://salsa.debian.org/go-team/packages/singularity-container/-/commit/210ec08671c35faa8604bd731d47c8a23934be15
Thanks Nilesh, passing tags to dh_auto_test worked following the above example. Any suggestions on how to pass tags to the final stage of the build, after dh_install ? End of build log: ... dh_installdeb -O--builddirectory=debian/.build/upstream -O--buildsystem=golang -O-- "-O-tagsmymysql mysql sqlite sqlite_app_armor sqlite_fts5 sqlite_introspect sqlite_json1 sqlite_math_functions sqlite_stat4 sqlite_vtable no_clickhouse no_csvq no_oracle no_sqlserver no_moderncsqlite" install -m0755 -d debian/usql/DEBIAN dh_golang -O--builddirectory=debian/.build/upstream -O--buildsystem=golang -O-- "-O-tagsmymysql mysql sqlite sqlite_app_armor sqlite_fts5 sqlite_introspect sqlite_json1 sqlite_math_functions sqlite_stat4 sqlite_vtable no_clickhouse no_csvq no_oracle no_sqlserver no_moderncsqlite" "go list -f '{{ range .Deps }}{{.}}\ {{ end }}'" github.com/xo/usql github.com/xo/usql/drivers github.com/xo/usql/drivers/metadata github.com/xo/usql/drivers/metadata/informationschema github.com/xo/usql/drivers/metadata/mysql github.com/xo/usql/drivers/metadata/postgres github.com/xo/usql/drivers/mymysql github.com/xo/usql/drivers/mysql github.com/xo/usql/drivers/sqlite3 github.com/xo/usql/drivers/sqlite3/sqshared github.com/xo/usql/env github.com/xo/usql/handler github.com/xo/usql/internal github.com/xo/usql/metacmd github.com/xo/usql/metacmd/charts github.com/xo/usql/rline github.com/xo/usql/stmt github.com/xo/usql/styles github.com/xo/usql/text debian/.build/upstream/src/github.com/xo/usql/drivers/clickhouse/clickhouse.go:12:2: cannot find package "github.com/ClickHouse/clickhouse-go/v2" in any of: /tmp/build/source/debian/.build/upstream/src/vendor/github.com/ClickHouse/clickhouse-go/v2 (vendor tree) /usr/lib/go-1.24/src/github.com/ClickHouse/clickhouse-go/v2 (from $GOROOT) /tmp/build/source/debian/.build/upstream/src/github.com/ClickHouse/clickhouse-go/v2 (from $GOPATH) debian/.build/upstream/src/github.com/xo/usql/drivers/csvq/csvq.go:12:2: cannot find package "github.com/mithrandie/csvq-driver" in any of: /tmp/build/source/debian/.build/upstream/src/vendor/github.com/mithrandie/csvq-driver (vendor tree) /usr/lib/go-1.24/src/github.com/mithrandie/csvq-driver (from $GOROOT) /tmp/build/source/debian/.build/upstream/src/github.com/mithrandie/csvq-driver (from $GOPATH) debian/.build/upstream/src/github.com/xo/usql/drivers/csvq/csvq.go:13:2: cannot find package "github.com/mithrandie/csvq/lib/query" in any of: /tmp/build/source/debian/.build/upstream/src/vendor/github.com/mithrandie/csvq/lib/query (vendor tree) /usr/lib/go-1.24/src/github.com/mithrandie/csvq/lib/query (from $GOROOT) /tmp/build/source/debian/.build/upstream/src/github.com/mithrandie/csvq/lib/query (from $GOPATH) debian/.build/upstream/src/github.com/xo/usql/drivers/oracle/oracle.go:12:2: cannot find package "github.com/sijms/go-ora/v2" in any of: /tmp/build/source/debian/.build/upstream/src/vendor/github.com/sijms/go-ora/v2 (vendor tree) /usr/lib/go-1.24/src/github.com/sijms/go-ora/v2 (from $GOROOT) /tmp/build/source/debian/.build/upstream/src/github.com/sijms/go-ora/v2 (from $GOPATH) debian/.build/upstream/src/github.com/xo/usql/drivers/sqlserver/sqlserver.go:15:2: cannot find package "github.com/microsoft/go-mssqldb" in any of: /tmp/build/source/debian/.build/upstream/src/vendor/github.com/microsoft/go-mssqldb (vendor tree) /usr/lib/go-1.24/src/github.com/microsoft/go-mssqldb (from $GOROOT) /tmp/build/source/debian/.build/upstream/src/github.com/microsoft/go-mssqldb (from $GOPATH) debian/.build/upstream/src/github.com/xo/usql/drivers/sqlserver/sqlserver.go:21:2: cannot find package "github.com/microsoft/go-mssqldb/azuread" in any of: /tmp/build/source/debian/.build/upstream/src/vendor/github.com/microsoft/go-mssqldb/azuread (vendor tree) /usr/lib/go-1.24/src/github.com/microsoft/go-mssqldb/azuread (from $GOROOT) /tmp/build/source/debian/.build/upstream/src/github.com/microsoft/go-mssqldb/azuread (from $GOPATH) debian/.build/upstream/src/github.com/xo/usql/drivers/sqlserver/sqlserver.go:22:2: cannot find package "github.com/microsoft/go-mssqldb/namedpipe" in any of: /tmp/build/source/debian/.build/upstream/src/vendor/github.com/microsoft/go-mssqldb/namedpipe (vendor tree) /usr/lib/go-1.24/src/github.com/microsoft/go-mssqldb/namedpipe (from $GOROOT) /tmp/build/source/debian/.build/upstream/src/github.com/microsoft/go-mssqldb/namedpipe (from $GOPATH) debian/.build/upstream/src/github.com/xo/usql/drivers/sqlserver/sqlserver.go:23:2: cannot find package "github.com/microsoft/go-mssqldb/sharedmemory" in any of: /tmp/build/source/debian/.build/upstream/src/vendor/github.com/microsoft/go-mssqldb/sharedmemory (vendor tree) /usr/lib/go-1.24/src/github.com/microsoft/go-mssqldb/sharedmemory (from $GOROOT) /tmp/build/source/debian/.build/upstream/src/github.com/microsoft/go-mssqldb/sharedmemory (from $GOPATH) dh_golang: error: go list -f '{{ range .Deps }}{{.}} {{ end }}' returned exit code 1 make: *** [debian/rules:48: binary] Error 1