Skip to content

Commit

Permalink
remove random from proposal file name
Browse files Browse the repository at this point in the history
  • Loading branch information
tenmoves committed Mar 17, 2023
1 parent 45a4723 commit 1236f83
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
18 changes: 16 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,21 @@ ARG MIX_ENV=prod
# running TESTNET with release upgrade should ???

RUN apk add --no-cache --update \
build-base bash gcc git npm python3 wget openssl libsodium-dev gmp-dev
build-base \
bash \
gcc \
make \
g++ \
libexecinfo-dev \
libexecinfo \
git \
npm \
python3 \
wget \
openssl \
libsodium-dev \
gmp-dev


# Install hex and rebar
RUN mix local.rebar --force \
Expand Down Expand Up @@ -51,7 +65,7 @@ RUN npm install -g sass

# build Sass -> CSS
RUN cd assets && \
sass --no-source-map --style=compressed css/app.scss ../priv/static/css/app.css && cd -
sass --no-source-map --style=compressed css/app.scss ../priv/static/css/app.css && cd -

# build release
RUN mix do assets.deploy, distillery.release
Expand Down
3 changes: 1 addition & 2 deletions lib/archethic/governance/code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ defmodule Archethic.Governance.Code do
src_dir,
persist?
) do
random = :crypto.strong_rand_bytes(4) |> Base.encode16()
prop_file = Path.join(System.tmp_dir!(), "prop_#{random}_#{Base.encode16(address)}")
prop_file = Path.join(System.tmp_dir!(), "prop_#{Base.encode16(address)}")
File.write!(prop_file, changes)

cmd_options = [stderr_to_stdout: true, cd: src_dir]
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"deep_merge": {:hex, :deep_merge, "1.0.0", "b4aa1a0d1acac393bdf38b2291af38cb1d4a52806cf7a4906f718e1feb5ee961", [:mix], [], "hexpm", "ce708e5f094b9cd4e8f2be4f00d2f4250c4095be93f8cd6d018c753894885430"},
"dialyxir": {:hex, :dialyxir, "1.2.0", "58344b3e87c2e7095304c81a9ae65cb68b613e28340690dfe1a5597fd08dec37", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "61072136427a851674cab81762be4dbeae7679f85b1272b6d25c3a839aff8463"},
"digital_token": {:hex, :digital_token, "0.4.0", "2ad6894d4a40be8b2890aad286ecd5745fa473fa5699d80361a8c94428edcd1f", [:mix], [{:cldr_utils, "~> 2.17", [hex: :cldr_utils, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "a178edf61d1fee5bb3c34e14b0f4ee21809ee87cade8738f87337e59e5e66e26"},
"distillery": {:git, "https://github.com/archethic-foundation/distillery.git", "67accaa239dcbe14fc312832c83b23eaaeed66ff", []},
"distillery": {:git, "https://github.com/archethic-foundation/distillery.git", "e66841c9108a5e5e9a8722a8f737596193b7bc0d", []},
"earmark": {:hex, :earmark, "1.4.35", "e067aab15367c6e43230d6a7409c5230403a48b56f7dcefb3abdad75b498289e", [:mix], [{:earmark_parser, "~> 1.4.30", [hex: :earmark_parser, repo: "hexpm", optional: false]}], "hexpm", "ab869cad78ebe64a62d45ee31addc52fb703c5d595868c9aa11ca38766ff9756"},
"earmark_parser": {:hex, :earmark_parser, "1.4.30", "0b938aa5b9bafd455056440cdaa2a79197ca5e693830b4a982beada840513c5f", [:mix], [], "hexpm", "3b5385c2d36b0473d0b206927b841343d25adb14f95f0110062506b300cd5a1b"},
"easy_ssl": {:hex, :easy_ssl, "1.3.0", "472256942d9dd37652a558a789a8d1cccc27e7f46352e32667d1ca46bb9e22e5", [:mix], [], "hexpm", "ce8fcb7661442713a94853282b56cee0b90c52b983a83aa6af24686d301808e1"},
Expand Down

0 comments on commit 1236f83

Please sign in to comment.