ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Denis Pynkin <denis.pynkin@gmail.com>
To: Alexey Gladkov <legion@altlinux.ru>
Cc: ALT Linux Team development discussions <devel@lists.altlinux.org>,
	Denis Pynkin <denis.pynkin@gmail.com>
Subject: Re: [devel] golang policy
Date: Tue, 16 Feb 2016 15:51:55 +0300
Message-ID: <20160216125155.GA31758@epbyminw3061.minsk.epam.com> (raw)
In-Reply-To: <20160201162704.GE15721@comp-core-i7-2640m-0182e6.fortress>

On Mon, Feb 01, 2016 at 05:27:04PM +0100, Alexey Gladkov wrote:

> > Дальше, не совсем понятно, как работать с исходниками в случае bundle.
> > Пока пришел к выводу, что собственно код программы -- калька из апстрима,
> > а все зависимости в отдельный гит, по сути снапшотом, и отдельным bundle пакетом,
> > который провайдит только bundle-пакет.
> 
> Я пока тоже не имею однозначного мнения на этот счёт. Если и делать
> bundle-пакет или bundle-бранч, то через godep, чтобы можно было
> автоматизировать проверку этих зависимостей.
> 
> > Еще вопрос -- поддерживает ли наш rpm зависимости вида:
> > BuildRequires: golang(github.com/gorilla/context) ?
> 
> Да. Я рассматривал этот вариант как основной.

пока пробую резать на пакетики, но что-то я не совсем понимаю, что
у нас с путями для golang

Например, упаковал я, пользуясь примерами, github.com/gorilla/websocket в пакет
golang-github-gorilla-websocket-devel и вижу, что все файлы *.go кладутся по
пути: /usr/share/gocode/src/github.com/gorilla/websocket

а при сборке зависимого от него пакета вижу ошибку:

+ /usr/share/golang/golang-build lxc
exec.go:11:2: cannot find package "github.com/gorilla/websocket" in any of:
  /usr/lib64/golang/src/github.com/gorilla/websocket (from $GOROOT)
  /usr/src/RPM/BUILD/lxd-2.0.0/.build/src/github.com/gorilla/websocket (from $GOPATH)

почему у нас игнорируется /usr/share/gocode?

Кривохак в %build в виде "export GOPATH="%go_path:$BUILDDIR"" работает, но
мне кажется, что это лучше поправить в rpm-build-golang.

Или я где-то что-то недопонимаю?

--
wbr,d4s


  reply	other threads:[~2016-02-16 12:51 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-31 15:33 Denis Pynkin
2016-02-01  7:36 ` Alexey Gladkov
2016-02-01 15:29   ` Denis Pynkin
2016-02-01 15:41     ` Dmitry V. Levin
2016-02-01 16:27     ` Alexey Gladkov
2016-02-16 12:51       ` Denis Pynkin [this message]
2016-02-16 13:05         ` Alexey Gladkov
2019-12-13  7:21 ` Ildar Mulyukov
2021-10-12 14:44     ` Anton Farygin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160216125155.GA31758@epbyminw3061.minsk.epam.com \
    --to=denis.pynkin@gmail.com \
    --cc=devel@lists.altlinux.org \
    --cc=legion@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git