Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

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

Closed
@markns

Description

@markns

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions