generated from iotaledger/template
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: setup history package manager #144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
itsyaasir
wants to merge
2
commits into
main
Choose a base branch
from
feat/package-history-manager
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "aliases": { | ||
| "testnet": "2304aa97", | ||
| "devnet": "e678123a", | ||
| "mainnet": "6364aad5" | ||
| }, | ||
| "envs": { | ||
| "e678123a": [ | ||
| "0x373c0013c63394509b220a70307a54c323729369a574197c19c9c571c64e68be" | ||
| ], | ||
| "2304aa97": [ | ||
| "0xbaa47178b92a43d08f79c029a385d5aff75e4e1010e12ea5105fe68f4e9ce8ef" | ||
| ], | ||
| "6364aad5": [ | ||
| "0x0f75165f01198edbc758df00d61440a46300efb639f3a5c33a7c797a8a66d371" | ||
| ] | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| // Copyright 2020-2025 IOTA Stiftung | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| use std::path::PathBuf; | ||
|
|
||
| use product_common::move_history_manager::MoveHistoryManager; | ||
|
|
||
| fn main() { | ||
| let move_lock_path = "../../hierarchies-move/Move.lock"; | ||
| println!("[build.rs] move_lock_path: {move_lock_path}"); | ||
| let move_history_path = "../../hierarchies-move/Move.history.json"; | ||
| println!("[build.rs] move_history_path: {move_history_path}"); | ||
|
|
||
| MoveHistoryManager::new( | ||
| &PathBuf::from(move_lock_path), | ||
| &PathBuf::from(move_history_path), | ||
| // We will watch the default watch list (`get_default_aliases_to_watch()`) in this build script | ||
| // so we leave the `additional_aliases_to_watch` argument vec empty. | ||
| // Use for example `vec!["localnet".to_string()]` instead, if you don't want to ignore `localnet`. | ||
| vec![], | ||
| ) | ||
| .manage_history_file(|message| { | ||
| println!("[build.rs] {}", message); | ||
| }) | ||
| .expect("Successfully managed Move history file"); | ||
|
|
||
| // Tell Cargo to rerun this build script if the Move.lock file changes. | ||
| println!("cargo::rerun-if-changed={move_lock_path}"); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it safe to use a feature branch in case, when we will need to increment the IOTA sdk in product core?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it seems that I invited you for a review unknowingly. But, yes, this won't be merged until we have a tag.