Skip to content

Commit

Permalink
chore: update lauchpad bucket naming to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuef committed May 8, 2024
1 parent bc652e9 commit a1f70f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use zip::ZipArchive;

const GITHUB_API_URL: &str = "https://api.github.com";
const FAUCET_S3_BASE_URL: &str = "https://sn-faucet.s3.eu-west-2.amazonaws.com";
const NODE_LAUNCHPAD_S3_BASE_URL: &str = "https://sn-node-launchpad.s3.eu-west-2.amazonaws.com";
const NODE_LAUNCHPAD_S3_BASE_URL: &str = "https://node-launchpad.s3.eu-west-2.amazonaws.com";
const SAFE_S3_BASE_URL: &str = "https://sn-cli.s3.eu-west-2.amazonaws.com";
const SAFENODE_S3_BASE_URL: &str = "https://sn-node.s3.eu-west-2.amazonaws.com";
const SAFENODE_MANAGER_S3_BASE_URL: &str = "https://sn-node-manager.s3.eu-west-2.amazonaws.com";
Expand Down Expand Up @@ -66,7 +66,7 @@ lazy_static! {
static ref RELEASE_TYPE_CRATE_NAME_MAP: HashMap<ReleaseType, &'static str> = {
let mut m = HashMap::new();
m.insert(ReleaseType::Faucet, "sn_faucet");
m.insert(ReleaseType::NodeLaunchpad, "sn_node_launchpad");
m.insert(ReleaseType::NodeLaunchpad, "node-launchpad");
m.insert(ReleaseType::Safe, "sn_cli");
m.insert(ReleaseType::Safenode, "sn_node");
m.insert(ReleaseType::SafenodeManager, "sn-node-manager");
Expand Down Expand Up @@ -229,7 +229,7 @@ impl SafeReleaseRepoActions for SafeReleaseRepository {
// For the time being, the node launchpad needs to be treated as a special case, because it
// cannot be published.
if matches!(release_type, ReleaseType::NodeLaunchpad) {
return Ok(Version::parse("0.1.0-alpha.0")?);
return Ok(Version::parse("0.1.0")?);
}

let crate_name = *RELEASE_TYPE_CRATE_NAME_MAP.get(release_type).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion tests/test_download_from_s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use semver::Version;
use sn_releases::{ArchiveType, Platform, ReleaseType, SafeReleaseRepoActions};

const FAUCET_VERSION: &str = "0.1.98";
const NODE_LAUNCHPAD_VERSION: &str = "0.1.0-alpha.0";
const NODE_LAUNCHPAD_VERSION: &str = "0.1.0";
const SAFE_VERSION: &str = "0.83.51";
const SAFENODE_VERSION: &str = "0.93.7";
const SAFENODE_MANAGER_VERSION: &str = "0.1.8";
Expand Down

0 comments on commit a1f70f6

Please sign in to comment.