Mock build of GO program fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I need a bit of assistance from a GO package expert.

I'm trying to package ssh-chat. (https://bugzilla.redhat.com/show_bug.cgi?id=1819180)
ssh-chat is written in GO and it implements a custom SSH server 
(on a different port) that provides a chat room instead of a shell.

I was successful to build the package locally with network access but when
I run mock the build always fails with the following message:

go build  -ldflags="-B 0x8fed0b1e64bd7424a5e5bae0774d74d15f24add1" ./cmd/ssh-chat
go: github.com/alexcesaro/log@v0.0.0-20150915221235-61e686294e58: invalid version: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /builddir/go/pkg/mod/cache/vcs/016624ec8fded143255b88378860b2bc8e5ac782133a7bec312d6e53ef83caea: exit status 128:
	fatal: unable to access 'https://github.com/alexcesaro/log/': Could not resolve host: github.com
make: *** [Makefile:12: ssh-chat] Error 1


It's clear that mock cannot access the network. So the source code
which normally will be downloaded must be provided as SOURCE files.

Can this be resolved by changing the spec file. If so, how?

Or must the source code be chaged where the imports happen?

import (
	"bufio"
	"fmt"
	"io/ioutil"
	"net/http"
	"os"
	"os/signal"
	"os/user"
	"strings"

	"github.com/alexcesaro/log"
	"github.com/alexcesaro/log/golog"
	flags "github.com/jessevdk/go-flags"
	"golang.org/x/crypto/ssh"

	sshchat "github.com/shazow/ssh-chat"
	"github.com/shazow/ssh-chat/chat"
	"github.com/shazow/ssh-chat/chat/message"
	"github.com/shazow/ssh-chat/sshd"
)



I have uploaded all relevant information to:

    https://senderek.ie/fedora/ssh-chat

Thanks in advance for any help.

Ralf
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux