From e8199390bec486d24326ee71fe3106168983e689 Mon Sep 17 00:00:00 2001 From: apoorv-2204 Date: Sat, 25 Feb 2023 22:35:45 +0530 Subject: [PATCH] Add new aliases ,Resolve failure in git hooks --- Makefile | 1 + config/config.exs | 3 +-- mix.exs | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a839a63600..fed779e6b4 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,7 @@ TPMFLAGS = -ltss2-esys -ltss2-rc -ltss2-mu -lcrypto all: compile_c_programs compile_c_programs: + mix git_hooks.install mkdir -p priv/c_dist $(CC) src/c/crypto/stdio_helpers.c src/c/crypto/ed25519.c -o priv/c_dist/libsodium_port -I src/c/crypto/stdio_helpers.h -lsodium $(CC) src/c/hypergeometric_distribution.c -o priv/c_dist/hypergeometric_distribution -lgmp diff --git a/config/config.exs b/config/config.exs index 00354f1298..76fc02118f 100644 --- a/config/config.exs +++ b/config/config.exs @@ -7,8 +7,7 @@ config :git_hooks, pre_push: [ tasks: [ {:cmd, "mix clean"}, - {:cmd, "mix git_hooks.install"}, - {:cmd, "mix hex.outdated --within-requirements"}, + # {:cmd, "mix dev.update_deps"}, {:cmd, "mix format --check-formatted"}, {:cmd, "mix compile --warnings-as-errors"}, {:cmd, "mix credo"}, diff --git a/mix.exs b/mix.exs index 1348f5650a..c648025e18 100644 --- a/mix.exs +++ b/mix.exs @@ -131,6 +131,14 @@ defmodule Archethic.MixProject do defp aliases do [ + "dev.update_deps": [ + "hex.outdated --within-requirements", + "deps.update --all --only", + "deps.clean --all --only", + "deps.get", + "deps.compile", + "hex.outdated --within-requirements" + ], # Intial developer Setup "dev.setup": ["deps.get", "cmd npm install --prefix assets"], # When Changes are not registered by compiler | any()