Read about our upcoming Code of Conduct on this issue

This instance will be upgraded to Heptapod 0.28.0 on 2022-01-18 at 14:00 UTC+1 (a few minutes of down time)

Commit 4e942769 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Giving a clear error message if Heptapod series is unknown

This should help bring the confusion down for this simple
class of mistakes.

branch : heptapod-0-14
parent f18171d6a8f0
......@@ -7,6 +7,10 @@ export GOPROXY ?=
# Generate a Makefile from Ruby and include it
include $(shell rake
ifneq ($(.SHELLSTATUS),0)
$(error "HDK configuration error")
# TODO make that automatic through lib/config.rb
hg_share_pool = ${gitlab_development_root}/../hg-share-pool
......@@ -141,6 +141,12 @@ module GDK
string(:heptapod_series) { read!('heptapod_series') || 'stable' }
settings :heptapod_revisions do
revs = HEPTAPOD_REVISIONS[config.heptapod_series]
if revs.nil?
raise StandardError, "Unsupported Heptapod series "\
"'#{config.heptapod_series}'. "\
"Please check you are on the right branch of "\
"the HDK and pull/update it if you are"
string(:rails) { revs[:rails] }
string(:workhorse) { revs[:workhorse] }
string(:shell) { revs[:shell] }
......@@ -45,6 +45,9 @@ end
task '' => '' do |t|,, config: config).render!
puts # Print the filename, so make can include it
rescue StandardError => e
warn e.message
exit 1
desc 'Generate nginx configuration'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment