From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YH3MIzjgw2P34gAAbAwnHQ (envelope-from ) for ; Sun, 15 Jan 2023 12:15:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gPXFIzjgw2NKgQAA9RJhRA (envelope-from ) for ; Sun, 15 Jan 2023 12:15:04 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 41FDDCBD4 for ; Sun, 15 Jan 2023 12:15:04 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pH0y8-0004qM-GQ; Sun, 15 Jan 2023 06:14:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pH0y6-0004q9-NM for help-guix@gnu.org; Sun, 15 Jan 2023 06:14:30 -0500 Received: from mx0.riseup.net ([198.252.153.6]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pH0y4-00062O-Q5 for help-guix@gnu.org; Sun, 15 Jan 2023 06:14:30 -0500 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4NvsxG5Hk6z9tGn for ; Sun, 15 Jan 2023 11:14:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1673781266; bh=Jalrt8b39pOL6qpS8vLn+v5g00BDvwkX8s777sKuV00=; h=References:From:To:Subject:Date:In-reply-to:From; b=IPsLwtRhrLO72FrXaA2IagLb/3Ylj8005pVEWSjRtq86FFirllrU3geAFxiZ3D8/9 hCKZQcW95ZPWyFs7CDPoFURXvvyM3Fmz5gDJTgfI7pyl/mp/Chi3fc6BUewQsOZbyI hcuceM/ehIu7pKZE+T2oE/ZscrVRQub0NOe266sw= X-Riseup-User-ID: 33469FB6164E631248410229CE56702CF3672118D173D0C57012F76FFA9F94B0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4NvsxG1qdHz1yV4 for ; Sun, 15 Jan 2023 11:14:26 +0000 (UTC) References: From: Csepp To: phodina via Subject: Re: Packaging Grafana Date: Sun, 15 Jan 2023 12:12:40 +0100 In-reply-to: Message-ID: <86v8l8yrqp.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673781304; a=rsa-sha256; cv=none; b=FGGAtBC1H+V52cW+ZNYnqVtx11xDljXTWY5GI1z6H+CyhYZCuG11ABbPxwG8R5jbqlHImv EyNc26ZE0IFKmrPvkwRz8ljFkWTaiQNFNExCTKgRWHevs7PowwW2KzN2h359ZLfaqqgNZi CgoRh+xoAeE4uDR3eync+pOEWDuaWaHo2S3cy11NhNUMaJ3js4IA96K9HvQ7y7cfTO+fa0 15dvfLqYoIpa397+gGG42uhm9JFSKpRBSp+R71yxOMYWgVmLD2QpF7sCcfTrJAo4lfmgJo UPKhPn2RxYyj8+WVd13DaPog32ReuKCQ7S8T8JdMjqydDWdwuqUpuvQUvU7BuA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=IPsLwtRh; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=riseup.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673781304; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZiJKkKu2IHErDO5RVkqnxDQZmCCYia26nIsWJZ1JV0c=; b=PNJTrFcEdctympMuvF3oduLs36odZ1Ylt2LJ4+iNnCQbKHRuZwE/wkqIwKw45ZYRKjQe0o urLVpHBnC/5ovKLhVr4N+rvjSzKWdtQSkGCutqb70xvKYpSJZ7GtySKa8Bx8o0jzviUYaU u9wBJk2a4n8x02WPSlFEppoJOfhZSRhtGU5Cb8YSRrV1+WJje5KIV7Gf7N3JlN3d3En/8H DdPKRxkETFYllGzzDYZecGJGP6Jgkw2eGCdt0tLYDC6y50LmPDocw9rvbVQ3ilPtHJbqsF UAzpOIDiw068xgyNdo4/4+jS8a0yd1Y/ADVgwnifrffkRpiSZp7U8fj1uYAT4w== X-Migadu-Spam-Score: -4.94 X-Spam-Score: -4.94 X-Migadu-Queue-Id: 41FDDCBD4 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=IPsLwtRh; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=riseup.net X-TUID: pbnTAQmDoaSE phodina via writes: > Hi Guix, > > Grafana [1] is an awesome tool to visualize and analyze various kind of d= ata. > > It's FOSS project under AGPL3+. > > The small drawback is it's written in Go and Typescript. > > As far as I understand for Go there's the file go.mod=E2=80=8B describing= the > dependencies [2] and for Typescript there's file package.json=E2=80=8B.[3] > > I've tried to use the guix import=E2=80=8B command, however, it fails to = add even the Go dependencies. > > Also since the dependency chain is obviously huge how should the porting = be done? > > Any experience porting some similar package with dos and don'ts? > > The short term solution at least in my case is to use the prebuilt > static binary which works after running patchelf on it. That's also > how Nix package looks like. [4] > > Here's what the importer returns: > > $ guix import go -r github.com/grafana/grafana > (define-public go-github-com-grafana-grafana > (package > (name "go-github-com-grafana-grafana") > (version "5.4.5+incompatible") > (source (origin > (method git-fetch) > (uri (git-reference > (url "https://github.com/grafana/grafana") > (commit (go-version->git-ref version)))) > (file-name (git-file-name name version)) > (sha256 > (base32 > "1rgcy21amrh6syf21p2gpdbwzc2mcjw6wsbhwwr7v40rdx12rmcm")))) > (build-system go-build-system) > (arguments > '(#:import-path "github.com/grafana/grafana")) > (home-page "https://github.com/grafana/grafana") > (synopsis "") > (description > "@@url{https://grafana.com,Website} | @@url{https://twitter.com/grafana,T= witter} > | @@url{https://community.grafana.com,Community & Forum}") (license licen= se:asl2.0))) > > 1 https://grafana.com/ > 2 https://github.com/grafana/grafana/blob/main/go.mod > 3 https://github.com/grafana/grafana/blob/main/package.json > 4 https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/mon= itoring/grafana.nix > > ---- > Petr Honestly, I think our Go importer needs to be rewritten to just use Go's libraries instead of trying to replicate all functionality in Guile. It does a lot of... let's say sub-optimal things currently, like cloning full git repos, when Go is smart enough to only clone what it needs for dependency resolution.