Skip to content

Commit f9c8d98

Browse files
rogpeppemvdan
authored andcommitted
internal/mod/modfile: add copyright message
As suggested in https://cuelang.org/cl/1168707 and not done before it landed. Signed-off-by: Roger Peppe <[email protected]> Change-Id: Ib412b2646a694a417c54511fcabee1703b5b7852 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1171838 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Daniel Martí <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent ca20656 commit f9c8d98

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

internal/mod/modfile/modfile_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ langugage: version: "v0.4.3"
7373
module: "foo.com/bar@v0"
7474
`,
7575
wantError: `langugage: field not allowed:
76-
cuelang.org/go/internal/mod/modfile/schema.cue:14:8
77-
cuelang.org/go/internal/mod/modfile/schema.cue:16:2
76+
cuelang.org/go/internal/mod/modfile/schema.cue:28:8
77+
cuelang.org/go/internal/mod/modfile/schema.cue:30:2
7878
module.cue:2:1`,
7979
}, {
8080
testName: "InvalidLanguageVersion",

internal/mod/modfile/schema.cue

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Copyright 2023 CUE Authors
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
115
// This schema constrains a module.cue file. This form constrains module.cue files
216
// outside of the main module. For the module.cue file in a main module, the schema
317
// is less restrictive, because wherever #Semver is used, a less specific version may be

0 commit comments

Comments
 (0)