GNU bug report logs - #71707
[PATCH 00/15] Updates and fixes for elixir and dependents

Previous Next

Package: guix-patches;

Reported by: Igor Goryachev <igor <at> goryachev.org>

Date: Fri, 21 Jun 2024 18:52:02 UTC

Severity: normal

Tags: patch

Done: Andrew Tropin <andrew <at> trop.in>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Igor Goryachev <igor <at> goryachev.org>
To: 71707 <at> debbugs.gnu.org
Cc: Igor Goryachev <igor <at> goryachev.org>, Andrew Tropin <andrew <at> trop.in>
Subject: [bug#71707] [PATCH v4 15/15] build-sysem/mix: Preserve code paths.
Date: Tue,  2 Jul 2024 09:55:17 +0300
* guix/build/mix-build-system.scm (build): Preserve code paths.

Change-Id: Ia43e79385a536de98ae026893e1bda2a8416562c
---
 guix/build/mix-build-system.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/guix/build/mix-build-system.scm b/guix/build/mix-build-system.scm
index fe2e36d184..0b021da791 100644
--- a/guix/build/mix-build-system.scm
+++ b/guix/build/mix-build-system.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2023 Pierre-Henry Fröhring <contact <at> phfrohring.com>
+;;; Copyright © 2024 Igor Goryachev <igor <at> goryachev.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -102,13 +103,17 @@ (define* (build #:key mix-environments #:allow-other-keys)
   "Builds the Mix project."
   (for-each (lambda (mix-env)
               (setenv "MIX_ENV" mix-env)
-              (invoke "mix" "compile" "--no-deps-check"))
+              (invoke "mix" "compile" "--no-deps-check"
+                      "--no-prune-code-paths"))
             mix-environments))
 
 (define* (check #:key (tests? #t) #:allow-other-keys)
   "Test the Mix project."
   (if tests?
-      (invoke "mix" "test" "--no-deps-check")
+      (begin
+        (setenv "MIX_ENV" "test")
+        (invoke "mix" "do" "compile" "--no-deps-check" "--no-prune-code-paths" "+"
+                "test" "--no-deps-check"))
       (format #t "tests? = ~a~%" tests?)))
 
 (define* (remove-mix-dirs . _)
-- 
2.45.2





This bug report was last modified 319 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.