From owner-freebsd-ports@freebsd.org Sat Jun 22 15:57:06 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 CD5B015D79C7 for ; Sat, 22 Jun 2019 15:57:06 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (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 0325F82B59 for ; Sat, 22 Jun 2019 15:57:05 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by mail-wr1-x443.google.com with SMTP id m3so9429335wrv.2 for ; Sat, 22 Jun 2019 08:57:04 -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=f3NigWM0svbAYYrCqJNDaBMrz5+KedlyoQS7+OiZkLY=; b=aaLqbYjQ7BfzG33XXLNzw5hGawAt+AB11JHw8a2V/yGp4IrLraf8IM7nmbdv6MSmuU A35wgIDJfgOPMNRXagRTtlTgBHXAKUED95UNghY403P3R90B9dyb+A0hcYCixHmR25eN tkBq/ySu3HJuPiAh977af2OzlSmKC8WozC7dzI5Jg/f5bqXg9dBT14E/rQ44lpE8D5cA B+xDC4MktCUjy+i4AxWSLXrnRFM1j9sntOW4Cy0Bfv8V/I/efPYEUV2DG0ZP4ToFZyqZ JSwdJQEbffEJMDqbIivCVSwVtgm9R+5BggEoeYHkAlegvr9vy1yJ7SPywrh4kj7pDzmh u7Pw== 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=f3NigWM0svbAYYrCqJNDaBMrz5+KedlyoQS7+OiZkLY=; b=XSeHEbbrx1liWfRA8OeHTgN84b9AYfJafvook23QsBVfwOTXx/1VgbznIelQJhGVNN 5IYnq3+ZWCaynOqad2vw7LkLf78ob/QOIR2HBTENoq1IhuuqJsRBifUsxWSS0z5lof7e OIMIfJmJuqA/EJBaHHNkPIT6g5XU4IER9z2Q+GSBPaYuv9tx5AwOiPkNsjr8U42IOvwu 3mmNFq7yt4fGvCUGeBxxiYnXsIqg83siq+jJrtbpJpIAmOl0WYn22aZH2vQYYqx7jD2O jdIPNjBkipiWQ4ddC2myiT9JqnRac/G34cIRL8wvWn9yj4tiibp0e95pdmyDhL9Z8+Vl 03zQ== X-Gm-Message-State: APjAAAWATUvvaT+NY+uvg6zfN9IRS/u/JAcVAMhhrJZ7WFB5Q6OVFED0 kMahbls/u8QJJJGr3RtPo2/z0BQH7BZNKrodtnCLCw== X-Google-Smtp-Source: APXvYqy1l7BiUmSc6/KSwSj0s1qHUj/gzWodTmXPAoIil4u2Ei3n8g1+AGxDw1Da9dcECOGNzJpkZKZR3CSnVEP9+Sk= X-Received: by 2002:adf:dfc4:: with SMTP id q4mr27528500wrn.54.1561219023979; Sat, 22 Jun 2019 08:57:03 -0700 (PDT) MIME-Version: 1.0 References: <20190622142115.cl6zvn7lmttyfl6a@t480.local> In-Reply-To: <20190622142115.cl6zvn7lmttyfl6a@t480.local> From: Adam Weinberger Date: Sat, 22 Jun 2019 09:56:48 -0600 Message-ID: Subject: Re: How to handle go dependencies To: "Danilo G. Baio" Cc: Matthias Fechner , FreeBSD Ports Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 0325F82B59 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=adamw-org.20150623.gappssmtp.com header.s=20150623 header.b=aaLqbYjQ; spf=pass (mx1.freebsd.org: domain of adamw@adamw.org designates 2a00:1450:4864:20::443 as permitted sender) smtp.mailfrom=adamw@adamw.org X-Spamd-Result: default: False [-3.95 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[adamw-org.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; 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.4.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.83)[-0.834,0]; IP_SCORE(-0.60)[ip: (1.92), 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 15:57:07 -0000 On Sat, Jun 22, 2019 at 8:21 AM Danilo G. Baio wrote: > > 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 defi= ned. > > They removed now all files from the vendor/ folder and add dependencies > > in a `go.mod` file. > > > > If I now build the port it tries to fetch the files while no network > > 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. # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org