Skip to content

Commit c5ab931

Browse files
committed
Require module-naming
1 parent 41166f8 commit c5ab931

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/fpm/cmd/publish.f90

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ subroutine cmd_publish(settings)
4646

4747
!> Checks before uploading the package.
4848
if (.not. allocated(package%license)) call fpm_stop(1, 'No license specified in fpm.toml.')
49+
if (.not. package%build%module_naming) call fpm_stop(1, 'The package does not meet the module naming requirements. '// &
50+
& 'Please set "module_naming = true" in fpm.toml [build] or specify a custom module prefix.')
4951
if (.not. allocated(version)) call fpm_stop(1, 'No version specified in fpm.toml.')
5052
if (version%s() == '0') call fpm_stop(1, 'Invalid version: "'//version%s()//'".')
5153
if (.not. exists('fpm.toml')) call fpm_stop(1, "Cannot find 'fpm.toml' file. Are you in the project root?")

src/fpm_command_line.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ subroutine set_help()
754754
' install [--profile PROF] [--flag FFLAGS] [--no-rebuild] [--prefix PATH] ', &
755755
' [options] ', &
756756
' clean [--skip] [--all] ', &
757-
' publish [--show-package-version] [--show-upload-data] [--token TOKEN] ', &
757+
' publish [--show-package-version] [--show-upload-data] [--token TOKEN] ', &
758758
' ']
759759
help_usage=[character(len=80) :: &
760760
'' ]

0 commit comments

Comments
 (0)