diff --git a/.buildkite/scripts/steps/esql_grammar_sync.sh b/.buildkite/scripts/steps/esql_grammar_sync.sh index 2aa1144dce8c..cd86c27ad324 100755 --- a/.buildkite/scripts/steps/esql_grammar_sync.sh +++ b/.buildkite/scripts/steps/esql_grammar_sync.sh @@ -58,12 +58,9 @@ main () { rm -rf elasticsearch git clone https://github.com/elastic/elasticsearch --depth 1 - rm -rf open-source - git clone https://github.com/elastic/open-source --depth 1 - cd "$KIBANA_DIR" - license_header=$(cat "$PARENT_DIR/open-source/legal/elastic-license-2.0-header.txt") + license_header=$(cat "$KIBANA_DIR/licenses/ELASTIC-LICENSE-2.0-HEADER.txt") report_main_step "Synchronizing lexer grammar..." synchronize_lexer_grammar "$license_header" diff --git a/licenses/ELASTIC-LICENSE-2.0-HEADER.txt b/licenses/ELASTIC-LICENSE-2.0-HEADER.txt new file mode 100644 index 000000000000..1fec1c76430e --- /dev/null +++ b/licenses/ELASTIC-LICENSE-2.0-HEADER.txt @@ -0,0 +1,6 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */