Skip to content

feat: shared dep config between hyperbeam & Forge template#922

Open
charmful0x wants to merge 2 commits into
edgefrom
feat/config-script
Open

feat: shared dep config between hyperbeam & Forge template#922
charmful0x wants to merge 2 commits into
edgefrom
feat/config-script

Conversation

@charmful0x
Copy link
Copy Markdown

@charmful0x charmful0x commented May 21, 2026

synopsis

this PR moves the better-to-be-shared dep overrrides, from root's rebar.config and the Forge device template _rebar.config into shared_rebar.config

hyperbeam load it through rebar.config.script -- install-template render the same file into generated device dir so external devices keep a normal self-contained rebar.config

(previous related conversation: #920 (comment) )

validate

local template path:

  ./install-template --local "$PWD"
  cd /tmp
  rebar3 new device name=hb_local_device_test
  cd /tmp/hb_local_device_test
  rebar3 compile
  rebar3 device package
  rebar3 device verify

remote template path:

  ./install-template --branch feat/config-script --repo https://github.com/permaweb/HyperBEAM.git
  cd /tmp
  rebar3 new device name=hb_remote_device_test
  cd /tmp/hb_remote_device_test
  rebar3 compile
  rebar3 device package
  rebar3 device verify

hyperbeam:

rebar3 compile
rebar3 eunit-all

result:

3639-  [done in 0.037 s]
3640-=======================================================
3641:  Failed: 1.  Skipped: 0.  Passed: 3075.
3642:One or more tests were cancelled.
3643-===> device test failed: eunit_failed

the failed test is related to SNP:

snp@1.0: verify_mock_generate_success

  thread '<unnamed>' panicked at src/verification.rs:282:57:
  called `Result::unwrap()` on an `Err` value
  asn1 encoding routines ... wrong tag ... Type=X509

@charmful0x charmful0x requested a review from samcamwilliams May 21, 2026 09:12
@charmful0x charmful0x changed the title feat: shared dep overrides between hyperbeam & Forge template feat: shared dep config between hyperbeam & Forge template May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant