this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <rogpeppe@gmail.com>
Change-Id: Ib412b2646a694a417c54511fcabee1703b5b7852
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1171838
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>

authored by

Roger Peppe and committed by
Daniel Martí
f9c8d98d ca206561

+16 -2
+2 -2
internal/mod/modfile/modfile_test.go
··· 73 73 module: "foo.com/bar@v0" 74 74 `, 75 75 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 78 78 module.cue:2:1`, 79 79 }, { 80 80 testName: "InvalidLanguageVersion",
+14
internal/mod/modfile/schema.cue
··· 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 + 1 15 // This schema constrains a module.cue file. This form constrains module.cue files 2 16 // outside of the main module. For the module.cue file in a main module, the schema 3 17 // is less restrictive, because wherever #Semver is used, a less specific version may be