cannot use file (type *io.Reader) as type io.Reader in argument to io.Copy #93

Closed
opened 2018-12-17 14:22:44 +00:00 by JonasFranz · 0 comments
Owner

Author: @markns Posted at: 02.03.2018 09:05

Hey @JonasFranzDEV, I get the following compilation error using the latest commit:

# bitbucket.org/gridarrow/gridarrow-manager/vendor/code.gitea.io/sdk/gitea
vendor/code.gitea.io/sdk/gitea/attachment.go:11:2: imported and not used: "io/ioutil"
vendor/code.gitea.io/sdk/gitea/attachment.go:58:21: cannot use file (type *io.Reader) as type io.Reader in argument to io.Copy:
	*io.Reader is pointer to interface, not interface

This is with the following glide dependency:

- package: code.gitea.io/sdk
  subpackages:
  - gitea

Previous commit works fine for me. Not a go expert, so perhaps it's my bad somehow...

Author: @markns Posted at: 02.03.2018 09:05 Hey @JonasFranzDEV, I get the following compilation error using the latest [commit](https://github.com/go-gitea/go-sdk/commit/c026786979c62f631658f365fd26e277cd90bfa4): ``` # bitbucket.org/gridarrow/gridarrow-manager/vendor/code.gitea.io/sdk/gitea vendor/code.gitea.io/sdk/gitea/attachment.go:11:2: imported and not used: "io/ioutil" vendor/code.gitea.io/sdk/gitea/attachment.go:58:21: cannot use file (type *io.Reader) as type io.Reader in argument to io.Copy: *io.Reader is pointer to interface, not interface ``` This is with the following glide dependency: ``` - package: code.gitea.io/sdk subpackages: - gitea ``` Previous commit works fine for me. Not a go expert, so perhaps it's my bad somehow...
JonasFranz added the
kind/bug
label 2018-12-17 14:22:44 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
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: JonasFranz/go-sdk#93
No description provided.