diff --git a/src/fpm/cmd/publish.f90 b/src/fpm/cmd/publish.f90 index 43636c0e30..28f86e16d0 100644 --- a/src/fpm/cmd/publish.f90 +++ b/src/fpm/cmd/publish.f90 @@ -67,6 +67,8 @@ subroutine cmd_publish(settings) tmp_file = get_temp_filename() call git_archive('.', tmp_file, 'HEAD', settings%verbose, error) if (allocated(error)) call fpm_stop(1, '*cmd_publish* Archive error: '//error%message) + call model%dump('fpm_model.json', error, json=.true.) + if (allocated(error)) call fpm_stop(1, '*cmd_publish* Model dump error: '//error%message) upload_data = [ & & string_t('package_name="'//package%name//'"'), & diff --git a/src/fpm/dependency.f90 b/src/fpm/dependency.f90 index ee048e2df9..28472cb739 100644 --- a/src/fpm/dependency.f90 +++ b/src/fpm/dependency.f90 @@ -696,7 +696,7 @@ subroutine get_from_registry(self, target_dir, global_settings, error, downloade end if ! Include namespace and package name in the target url and download package data. - target_url = global_settings%registry_settings%url//'/packages/'//self%namespace//'/'//self%name + target_url = global_settings%registry_settings%url//'packages/'//self%namespace//'/'//self%name call downloader%get_pkg_data(target_url, self%requested_version, tmp_file, json, error) close (unit, status='delete') if (allocated(error)) return diff --git a/src/fpm_command_line.f90 b/src/fpm_command_line.f90 index e73cdf7821..9cb1449beb 100644 --- a/src/fpm_command_line.f90 +++ b/src/fpm_command_line.f90 @@ -1470,7 +1470,7 @@ subroutine set_help() 'DESCRIPTION', & ' Follow the steps to create a tarball and upload a package to the registry:', & '', & - ' 1. Register on the website (https://registry-frontend.vercel.app/).', & + ' 1. Register on the website (https://registry-phi.vercel.app/).', & ' 2. Create a namespace. Uploaded packages must be assigned to a unique', & ' namespace to avoid conflicts among packages with similar names. A', & ' namespace can accommodate multiple packages.', & diff --git a/src/fpm_settings.f90 b/src/fpm_settings.f90 index a11abb8565..353728bcdf 100644 --- a/src/fpm_settings.f90 +++ b/src/fpm_settings.f90 @@ -10,7 +10,7 @@ module fpm_settings private public :: fpm_global_settings, get_global_settings, get_registry_settings, official_registry_base_url - character(*), parameter :: official_registry_base_url = 'https://registry-apis.vercel.app' + character(*), parameter :: official_registry_base_url = 'https://fpm-registry.vercel.app' character(*), parameter :: default_config_file_name = 'config.toml' type :: fpm_global_settings