diff --git a/internal/mod/modfile/modfile_test.go b/internal/mod/modfile/modfile_test.go index 0202e18fca1..438b4967ee4 100644 --- a/internal/mod/modfile/modfile_test.go +++ b/internal/mod/modfile/modfile_test.go @@ -73,8 +73,8 @@ langugage: version: "v0.4.3" module: "foo.com/bar@v0" `, wantError: `langugage: field not allowed: - cuelang.org/go/internal/mod/modfile/schema.cue:14:8 - cuelang.org/go/internal/mod/modfile/schema.cue:16:2 + cuelang.org/go/internal/mod/modfile/schema.cue:28:8 + cuelang.org/go/internal/mod/modfile/schema.cue:30:2 module.cue:2:1`, }, { testName: "InvalidLanguageVersion", diff --git a/internal/mod/modfile/schema.cue b/internal/mod/modfile/schema.cue index 557bfef851e..506f2b47f42 100644 --- a/internal/mod/modfile/schema.cue +++ b/internal/mod/modfile/schema.cue @@ -1,3 +1,17 @@ +// Copyright 2023 CUE Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // This schema constrains a module.cue file. This form constrains module.cue files // outside of the main module. For the module.cue file in a main module, the schema // is less restrictive, because wherever #Semver is used, a less specific version may be