diamondburned / gtkcord3

A Gtk3 Discord client in Golang
GNU General Public License v3.0
628 stars 28 forks source link

Unable to build from source #89

Open Qiangong2 opened 4 years ago

Qiangong2 commented 4 years ago

I'm trying to build from source, but go get keeps hanging here:

# github.com/diamondburned/ningen/states/note
../go/src/github.com/diamondburned/ningen/states/note/note.go:13:12: undefined: discord.UserID
../go/src/github.com/diamondburned/ningen/states/note/note.go:18:14: undefined: discord.UserID
../go/src/github.com/diamondburned/ningen/states/note/note.go:39:29: undefined: discord.UserID
# github.com/diamondburned/ningen/states/relationship
../go/src/github.com/diamondburned/ningen/states/relationship/relationship.go:13:20: undefined: discord.UserID
../go/src/github.com/diamondburned/ningen/states/relationship/relationship.go:18:22: undefined: discord.UserID
../go/src/github.com/diamondburned/ningen/states/relationship/relationship.go:49:37: undefined: discord.UserID
../go/src/github.com/diamondburned/ningen/states/relationship/relationship.go:61:32: undefined: discord.UserID
# github.com/diamondburned/ningen/states/mute
../go/src/github.com/diamondburned/ningen/states/mute/mute.go:19:15: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/states/mute/mute.go:30:27: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/states/mute/mute.go:53:36: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/states/mute/mute.go:63:35: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/states/mute/mute.go:70:44: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/states/mute/mute.go:96:31: undefined: discord.GuildID
../go/src/github.com/diamondburned/ningen/states/mute/mute.go:103:39: undefined: discord.GuildID
# github.com/diamondburned/ningen/states/emoji
../go/src/github.com/diamondburned/ningen/states/emoji/emoji.go:27:29: undefined: discord.GuildID
../go/src/github.com/diamondburned/ningen/states/emoji/emoji.go:69:38: undefined: discord.GuildID
# github.com/diamondburned/ningen/states/read
../go/src/github.com/diamondburned/ningen/states/read/read.go:23:13: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/states/read/read.go:25:12: undefined: discord.UserID
../go/src/github.com/diamondburned/ningen/states/read/read.go:84:36: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/states/read/read.go:94:33: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/states/read/read.go:94:58: undefined: discord.MessageID
../go/src/github.com/diamondburned/ningen/states/read/read.go:139:31: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/states/read/read.go:139:56: undefined: discord.MessageID
../go/src/github.com/diamondburned/ningen/states/read/read.go:144:31: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/states/read/read.go:144:56: undefined: discord.MessageID
../go/src/github.com/diamondburned/ningen/states/read/read.go:189:26: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/states/read/read.go:189:26: too many errors
# github.com/diamondburned/ningen/states/member
../go/src/github.com/diamondburned/ningen/states/member/callback.go:11:50: undefined: discord.GuildID
../go/src/github.com/diamondburned/ningen/states/member/callback.go:12:50: undefined: discord.GuildID
../go/src/github.com/diamondburned/ningen/states/member/callback.go:13:30: undefined: discord.GuildID
../go/src/github.com/diamondburned/ningen/states/member/callback.go:46:50: undefined: discord.GuildID
../go/src/github.com/diamondburned/ningen/states/member/callback.go:54:52: undefined: discord.GuildID
../go/src/github.com/diamondburned/ningen/states/member/callback.go:62:34: undefined: discord.GuildID
../go/src/github.com/diamondburned/ningen/states/member/member.go:56:17: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/states/member/member.go:89:13: undefined: discord.UserID
../go/src/github.com/diamondburned/ningen/states/member/member.go:106:35: undefined: discord.GuildID
../go/src/github.com/diamondburned/ningen/states/member/member.go:137:38: undefined: discord.GuildID
../go/src/github.com/diamondburned/ningen/states/member/member.go:137:38: too many errors
# github.com/diamondburned/ningen/md
../go/src/github.com/diamondburned/ningen/md/mention.go:77:8: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/md/mention.go:93:8: undefined: discord.UserID
../go/src/github.com/diamondburned/ningen/md/mention.go:121:8: undefined: discord.RoleID
../go/src/github.com/diamondburned/ningen/md/mention.go:149:44: undefined: discord.GuildID
../go/src/github.com/diamondburned/ningen/md/mention.go:149:69: undefined: discord.ChannelID
../go/src/github.com/diamondburned/ningen/md/mention.go:149:93: undefined: discord.UserID

Any tips?

bluskript commented 4 years ago

You need to fetch all dependencies first. go get -u ./...

diamondburned commented 4 years ago

Oh, I know why this happens. Something changed in ningen (upstream) which broke gtkcord's build. This seems to be caused by -u upgrading all dependencies, and consequently, ningen to a breaking update.

Qiangong2 commented 4 years ago

Okay, so just wait until ningen gets fixed?

diamondburned commented 4 years ago

It's not ningen's fault, and I don't think it's gtkcord's either. It's probably due to the hash in your gtkcord's go.mod being incorrect. That said, I don't really work on this project anymore.

Qiangong2 commented 4 years ago

It's not ningen's fault, and I don't think it's gtkcord's either. It's probably due to the hash in your gtkcord's go.mod being incorrect. That said, I don't really work on this project anymore.

I'm sorry to hear that. I'm trying to port it to Ubports since there isn't a discord client for it and GTKCord3 seemed the most full featured out of them. Clickable keeps having issues with the main.go, saying it can't find "latest."

ghost commented 3 years ago

i'm new to everything i'm doing basically and i don't really know what i'm doing, can i get an insight? this was done on a fresh go install

$ go get github.com/diamondburned/gtkcord3
# github.com/diamondburned/gtkcord3/gtkcord/ningen
../../go/src/github.com/diamondburned/gtkcord3/gtkcord/ningen/ningen.go:69:5: cannot use (*ningen.State)(nil) (type *ningen.State) as type Presencer in assignment:
    *ningen.State does not implement Presencer (wrong type for Presence method)
        have Presence(discord.GuildID, discord.UserID) (*discord.Presence, error)
        want Presence(discord.Snowflake, discord.Snowflake) (*discord.Presence, error)
../../go/src/github.com/diamondburned/gtkcord3/gtkcord/ningen/ningen.go:82:9: e.ID.Valid undefined (type discord.EmojiID has no field or method Valid)
diamondburned commented 3 years ago

Check the last 2 issues.