From owner-freebsd-ports@freebsd.org Sat Jun 22 17:48:02 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B273D15D9552 for ; Sat, 22 Jun 2019 17:48:02 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F6AC85A55 for ; Sat, 22 Jun 2019 17:48:00 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by mail-wm1-x343.google.com with SMTP id 207so9051491wma.1 for ; Sat, 22 Jun 2019 10:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamw-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=n2NpBPhq2YB5HxJVt4mnN19Uq0Qb56ElwDkreM8OP9M=; b=ZJecwRS+8yHwLKcVO0ATQlNSIB2hOVIoNCEFc8oWwnjgcrWc7jCZb1/EXXwNghBj0v SbP6ZZTUtJLzzK3yI+E/ir40nd2mgLaMXQXzt+PLr6JK01umrzjSBH6vF0h9I0W6WuDH qzA9kRowTvjstjQ7mSBSxPWgR80ZDIXN0VqOaH5ESWPIPx5zl2dV+m5TKB9ZNa13CaZ3 bp/JfyAFdlqhr9HMaYzi46rBG5b55UqOVQwzwwoa9PHxKn5SrmdTzMycvRslDzFNzGXF zbnaSK8gv7iWupX7UcqVeBzdGFhW2D+iUGZ5+aKczmNLDJG1HLZNfi5ZuQm67M/Y5H/a ULtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=n2NpBPhq2YB5HxJVt4mnN19Uq0Qb56ElwDkreM8OP9M=; b=DPZVBbS+oSMYMWgsiYw7p62Ftg/9pqkrIFl4jRSjyru4OjGo8Mh6juWIeong1vVdDz OGUSK5iRFvRNJYpYeKLtlviT5rRzZj5yL7hrYollKt5ZbQMR3035iAluvMRDz9HUoOVG nGTuwP1DXU4k5RdEKJFWQaQGtk8mvHkgP/n83xIs/gbV+ts6yJZA8w7P1mw51wEqjBsx Itnb9dboJ6sdzyt0l4ktljLw4gmzJqpAmVc2yeGKnLMmHRUiRCYkNuB2tyE/ini6V9/X o6uRLponhlLgrZg73N2vgLgU9myUkPGRuoGnzm2SdCkAHKll+/sjmZu7uNknyetgAbLi X77Q== X-Gm-Message-State: APjAAAUrknr0gA7otk9Rc5rDVnkpGl9M6OnbSeN18gukyFrKlFKCTdVk khGpKLPt7Yxe5DH7mmKN8xskVPrnoORmDTn5UysI6g== X-Google-Smtp-Source: APXvYqyt1ZN8hcc/Gc+QZSQNt+MAfaU5q+jDoPaJxZTcaRZrV/nO8a54XO46LlYayGX5ejH4GrswCQi5UD9IEGDzUUo= X-Received: by 2002:a1c:7217:: with SMTP id n23mr8766725wmc.47.1561225679299; Sat, 22 Jun 2019 10:47:59 -0700 (PDT) MIME-Version: 1.0 References: <5d0e610d.1c69fb81.9d081.8e65@mx.google.com> In-Reply-To: <5d0e610d.1c69fb81.9d081.8e65@mx.google.com> From: Adam Weinberger Date: Sat, 22 Jun 2019 11:47:43 -0600 Message-ID: Subject: Re: How to handle go dependencies To: Bernhard Froehlich Cc: "Danilo G. Baio" , FreeBSD Ports , Matthias Fechner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 7F6AC85A55 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=adamw-org.20150623.gappssmtp.com header.s=20150623 header.b=ZJecwRS+; spf=pass (mx1.freebsd.org: domain of adamw@adamw.org designates 2a00:1450:4864:20::343 as permitted sender) smtp.mailfrom=adamw@adamw.org X-Spamd-Result: default: False [-3.77 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; R_DKIM_ALLOW(-0.20)[adamw-org.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; DMARC_NA(0.00)[adamw.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[adamw-org.20150623.gappssmtp.com:+]; MX_GOOD(-0.01)[cached: alt1.aspmx.l.google.com]; RCVD_IN_DNSWL_NONE(0.00)[3.4.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_SHORT(-0.85)[-0.853,0]; IP_SCORE(-0.41)[ip: (2.86), ipnet: 2a00:1450::/32(-2.54), asn: 15169(-2.33), country: US(-0.06)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jun 2019 17:48:03 -0000 On Sat, Jun 22, 2019 at 11:10 AM Bernhard Froehlich wro= te: > > > Am 22.06.2019 17:56 schrieb Adam Weinberger : > > > > On Sat, Jun 22, 2019 at 8:21 AM Danilo G. Baio wrot= e: > > > > > > On Sat, Jun 22, 2019 at 11:58:49AM +0200, Matthias Fechner wrote: > > > > Dear all, > > > > > > > > I just prepare the gitlab-ce upgrade to version 12.0.0. > > > > But I have some problem with a package that uses go to compile. > > > > > > > > The new version of devel/gitaly has changed the way the package is = defined. > > > > They removed now all files from the vendor/ folder and add dependen= cies > > > > in a `go.mod` file. > > > > > > > > If I now build the port it tries to fetch the files while no networ= k > > > > access is allowed. > > > > > > > > What is the correct way to getting these dependencies fetched and > > > > correctly included into the work-source in the fetch step using go? > > > > > > > > Thanks a lot! > > > > > > > > Gru=C3=9F > > > > Matthias > > > > > > > > > > Try this and remove the go.mod file > > > > > > ports-mgmt/modules2tuple > > > https://github.com/dmgk/modules2tuple > > > > > > Examples: > > > net/geoipupdate > > > shells/antibody > > > > Just a note here, both those ports are mine, and I have no idea if > > that's the right thing to do; it built right so I did it. I don't > > understand Go packaging at all, and I'd sure appreciate someone with > > Go knowledge verifying whether removing go.mod is the proper thing to > > do. > > The correct magic that you are searching is: > > MAKE_ENV+=3D GOFLAGS=3D-mod=3Dvendor > > (like it is used in mail/smtprelay) With that I still get: $GOPATH/go.mod exists but should not *** Error code 1 Stop. # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org