Cannot import tree service interface package #75

Closed
opened 2023-04-03 06:43:10 +00:00 by ale64bit · 0 comments
Member

The package git.frostfs.info/TrueCloudLab/frostfs-s3-gw/pkg/service/tree can't be imported from empty project.

Expected Behavior

go get git.frostfs.info/TrueCloudLab/frostfs-s3-gw/pkg/service/tree@master should resolve the package correctly.

Current Behavior

$ go get git.frostfs.info/TrueCloudLab/frostfs-s3-gw/pkg/service/tree@master
go: downloading github.com/nats-io/nats.go v1.13.1-0.20220121202836-972a071d373d
go: downloading golang.org/x/text v0.5.0
go: downloading golang.org/x/sys v0.3.0
go: downloading golang.org/x/exp v0.0.0-20221227203929-1b447090c38c
git.frostfs.info/TrueCloudLab/frostfs-s3-gw/pkg/service/tree imports
	git.frostfs.info/TrueCloudLab/frostfs-s3-gw/internal/frostfs/services/tree: cannot find module providing package git.frostfs.info/TrueCloudLab/frostfs-s3-gw/internal/frostfs/services/tree

Possible Solution

Move gRPC-backed implementation to a separate package so that tree doesn't have dependencies from internal.

Steps to Reproduce (for bugs)

Context

#59

Regression

No

Your Environment

$ go version
go version go1.19.7 linux/amd64
The package `git.frostfs.info/TrueCloudLab/frostfs-s3-gw/pkg/service/tree` can't be imported from empty project. ## Expected Behavior `go get git.frostfs.info/TrueCloudLab/frostfs-s3-gw/pkg/service/tree@master` should resolve the package correctly. ## Current Behavior ``` $ go get git.frostfs.info/TrueCloudLab/frostfs-s3-gw/pkg/service/tree@master go: downloading github.com/nats-io/nats.go v1.13.1-0.20220121202836-972a071d373d go: downloading golang.org/x/text v0.5.0 go: downloading golang.org/x/sys v0.3.0 go: downloading golang.org/x/exp v0.0.0-20221227203929-1b447090c38c git.frostfs.info/TrueCloudLab/frostfs-s3-gw/pkg/service/tree imports git.frostfs.info/TrueCloudLab/frostfs-s3-gw/internal/frostfs/services/tree: cannot find module providing package git.frostfs.info/TrueCloudLab/frostfs-s3-gw/internal/frostfs/services/tree ``` ## Possible Solution Move gRPC-backed implementation to a separate package so that `tree` doesn't have dependencies from `internal`. ## Steps to Reproduce (for bugs) ## Context #59 ## Regression No ## Your Environment ``` $ go version go version go1.19.7 linux/amd64 ```
alexvanin added this to the v0.27.0 milestone 2023-04-03 06:57:27 +00:00
dkirillov was assigned by alexvanin 2023-04-03 06:57:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#75
No description provided.