Skip to content

Commit

Permalink
Use latest Deno 2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksrutins committed Dec 16, 2024
1 parent c42c9e9 commit bbaa0e4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
3 changes: 3 additions & 0 deletions src/nixpacks/nix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ pub const NIXPKGS_ARCHIVE: &str = "5148520bfab61f99fd25fb9ff7bfbb50dad3c9db";
// Version of the Nix archive that uses OpenSSL 1.1
pub const NIXPACKS_ARCHIVE_LEGACY_OPENSSL: &str = "a0b7e70db7a55088d3de0cc370a59f9fbcc906c3";

// Version of the Nix archive with the latest Deno
pub const NIXPACKS_ARCHIVE_LATEST_DENO: &str = "734af41a2b6a21fb9bf70d9f170563b6932364bb";

/// Contains all the data needed to generate a Nix expression file for installing Nix dependencies.
#[derive(Eq, PartialEq, Default, Debug, Clone)]
struct NixGroup {
Expand Down
2 changes: 1 addition & 1 deletion src/nixpacks/plan/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl NixpacksBuildPlanGenerator<'_> {
plan.add_variables(Environment::clone_variables(new_env));
}

plan.pin(new_env.is_config_variable_truthy("DEBIAN"));
plan.pin(new_env.is_config_variable_truthy("DEBIAN"), plan.pinned_archive.clone());
if plan.clone().phases.unwrap_or_default().is_empty() {
// try again in a subdir
let dir_count = app.paths.clone().iter().filter(|p| p.is_dir()).count();
Expand Down
12 changes: 8 additions & 4 deletions src/nixpacks/plan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use self::{
phase::{Phase, Phases, StartPhase},
topological_sort::topological_sort,
};
use super::images::{DEBIAN_BASE_IMAGE, UBUNTU_BASE_IMAGE};
use super::{images::{DEBIAN_BASE_IMAGE, UBUNTU_BASE_IMAGE}, nix::NIXPACKS_ARCHIVE_LEGACY_OPENSSL};
use crate::nixpacks::{
app::{App, StaticAssets},
environment::{Environment, EnvironmentVariables},
Expand Down Expand Up @@ -45,6 +45,8 @@ pub struct BuildPlan {
pub static_assets: Option<StaticAssets>,

pub phases: Option<Phases>,

pub pinned_archive: Option<String>,

#[serde(rename = "start")]
pub start_phase: Option<StartPhase>,
Expand Down Expand Up @@ -292,7 +294,7 @@ impl BuildPlan {
}

/// Store the base image and phase dependencies in this BuildPlan, for later reproducibility.
pub fn pin(&mut self, use_debian: bool) {
pub fn pin(&mut self, use_debian: bool, archive: Option<String>) {
self.providers = Some(Vec::new());
if self.build_image.is_none() {
let base_image = if use_debian {
Expand All @@ -306,12 +308,14 @@ impl BuildPlan {
self.resolve_phase_names();
let phases = self.phases.get_or_insert(Phases::default());
for phase in (*phases).values_mut() {
phase.pin(use_debian);
phase.pin(if archive.is_some() { archive.clone() } else if use_debian { Some(NIXPACKS_ARCHIVE_LEGACY_OPENSSL.to_string()) } else { None });
}

if let Some(start) = &mut self.start_phase {
start.pin();
}

self.pinned_archive = archive
}

/// Prefix each phase name with the name of the provider that generated the phase, in the case of multiple providers.
Expand Down Expand Up @@ -485,7 +489,7 @@ mod test {
)
.unwrap();

plan.pin(false);
plan.pin(false, None);
assert_eq!(
plan.get_phase("setup").unwrap().nix_pkgs,
Some(vec!["nodejs".to_string(), "yarn".to_string()])
Expand Down
7 changes: 4 additions & 3 deletions src/nixpacks/plan/phase.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::nixpacks::{
nix::{pkg::Pkg, NIXPACKS_ARCHIVE_LEGACY_OPENSSL, NIXPKGS_ARCHIVE},

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Check

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (MSRV) (ubuntu-latest)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macos-latest)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (MSRV) (macos-latest)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (MSRV) (windows-latest)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_deno)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_docker_host)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_config_toml_file)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cowsay)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cobol_my_app)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cobol_src_my_app)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cobol_free)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ffmpeg)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cobol_src_index)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cobol)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_bun)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_go)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_fsharp)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_nested_directory)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cobol_no_index)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_custom_version)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_go_custom_version)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_scheme)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_dart)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_pnpm_corepack)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_uv)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_csharp)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_crystal)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_pnpm_v8)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_yarn_custom_version)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_pnpm_v9)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_procfile)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_canvas)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_gleam_basic)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_bun_web_server)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_django)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_bun_prisma_postgres)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_asdf_poetry)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_pipfile)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_pdm)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_pnpm_network_call_working_with_add_hosts)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_prisma_postgres_npm_v9)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_yarn_prisma)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_toolchain_file)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_staticfile)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_postgres)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_pnpm_network_call_should_not_work_without_hosts)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_django_mysql)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_python)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_zig)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_prisma_postgres)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_poetry)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_java_gradle_8)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_moon_custom_build)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_puppeteer)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_clojure)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_clojure_ring_app)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_moon_custom_start)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_swift)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_php_vanilla)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_cargo_workspaces_glob)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_java_maven)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_clojure_tools_build)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_haskell_stack)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_multiple_bins)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_custom_version)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_scala_sbt)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_java_spring_boot_1)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_turborepo)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_cargo_workspaces)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_ring)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_java_spring_boot_3)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_java_spring_boot_2)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_clojure_luminus)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_openssl)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_lunatic_basic)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_node)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_no_options)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_yarn_berry)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_start_command_production)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_elixir_no_ecto)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_start_command)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_express)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_next)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_default_app)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_2)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_2)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_local_deps)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_3)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_rails_api_app)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_sinatra)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_execjs)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_node)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_rails)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`

Check warning on line 3 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_numpy)

unused import: `NIXPACKS_ARCHIVE_LEGACY_OPENSSL`
};
use serde::{Deserialize, Serialize};
use core::arch;

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Check

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (MSRV) (ubuntu-latest)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (ubuntu-latest)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (macos-latest)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (MSRV) (macos-latest)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (MSRV) (windows-latest)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Test Suite (windows-latest)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_deno)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_docker_host)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_config_toml_file)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cowsay)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cobol_my_app)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cobol_src_my_app)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cobol_free)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ffmpeg)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cobol_src_index)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cobol)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_bun)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_go)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_fsharp)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_nested_directory)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_cobol_no_index)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_custom_version)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_go_custom_version)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_scheme)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_dart)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_pnpm_corepack)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_uv)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_csharp)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_crystal)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_pnpm_v8)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_yarn_custom_version)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_pnpm_v9)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_procfile)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_canvas)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_gleam_basic)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_bun_web_server)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_django)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_bun_prisma_postgres)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_asdf_poetry)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_pipfile)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_pdm)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_pnpm_network_call_working_with_add_hosts)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_prisma_postgres_npm_v9)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_yarn_prisma)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_toolchain_file)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_staticfile)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_postgres)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_pnpm_network_call_should_not_work_without_hosts)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_django_mysql)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_python)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_zig)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_prisma_postgres)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_poetry)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_java_gradle_8)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_moon_custom_build)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_puppeteer)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_clojure)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_clojure_ring_app)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_moon_custom_start)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_swift)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_php_vanilla)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_cargo_workspaces_glob)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_java_maven)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_clojure_tools_build)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_haskell_stack)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_multiple_bins)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_custom_version)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_scala_sbt)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_java_spring_boot_1)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_turborepo)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_cargo_workspaces)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_ring)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_java_spring_boot_3)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_java_spring_boot_2)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_clojure_luminus)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_rust_openssl)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_lunatic_basic)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_node)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_no_options)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_yarn_berry)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_start_command_production)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_elixir_no_ecto)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_start_command)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_express)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_next)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_node_nx_default_app)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_2)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_2)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_local_deps)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_3)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_rails_api_app)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_sinatra)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_execjs)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_node)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_ruby_rails)

unused import: `core::arch`

Check warning on line 6 in src/nixpacks/plan/phase.rs

View workflow job for this annotation

GitHub Actions / Docker Tests (test_python_numpy)

unused import: `core::arch`
use std::collections::{BTreeMap, HashSet};
use std::hash::Hash;

Expand Down Expand Up @@ -209,10 +210,10 @@ impl Phase {
}

/// Store the phase dependencies for later reproducibility.
pub fn pin(&mut self, use_legacy_openssl: bool) {
pub fn pin(&mut self, archive: Option<String>) {
if self.uses_nix() && self.nixpkgs_archive.is_none() {
self.nixpkgs_archive = if use_legacy_openssl {
Some(NIXPACKS_ARCHIVE_LEGACY_OPENSSL.to_string())
self.nixpkgs_archive = if let Some(archive) = archive {
Some(archive)
} else {
Some(NIXPKGS_ARCHIVE.to_string())
}
Expand Down
3 changes: 2 additions & 1 deletion src/providers/deno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use super::Provider;
use crate::nixpacks::{
app::App,
environment::Environment,
nix::pkg::Pkg,
nix::{pkg::Pkg, NIXPACKS_ARCHIVE_LATEST_DENO},
plan::{
phase::{Phase, StartPhase},
BuildPlan,
Expand Down Expand Up @@ -44,6 +44,7 @@ impl Provider for DenoProvider {

fn get_build_plan(&self, app: &App, _env: &Environment) -> Result<Option<BuildPlan>> {
let mut plan = BuildPlan::default();
plan.pin(false, Some(NIXPACKS_ARCHIVE_LATEST_DENO.to_string()));

let setup = Phase::setup(Some(vec![Pkg::new("deno")]));
plan.add_phase(setup);
Expand Down

0 comments on commit bbaa0e4

Please sign in to comment.