The spdx has it's own version for SPDX spec (i.e. v3_0_1)
https://spdx.github.io/spdx-spec/v2.3/

but go module's version might conflict this.
If an user import spdx v2.3(with go mod version 1.0.0), he will end up 
import  `github.com/spdx/spdx-go-model/v 
<http://github.com/spdx/spdx-go-model/v3_0_1>2_3_0@v1.0.0 `

That's very confusing to me.

在2025年1月25日星期六 UTC+8 05:40:30<will....@gmail.com> 写道:

> Meng,
>
> It's unclear to me what you're asking. Are you asking whether the path 
> should be changed to be more idiomatic? I would have expected it to be 
> github.com/spdx/spdx-go-model if the major version is 0 or 1; and 
> github.com/spdx/spdx-go-model/v3 if the major version is 3.
>
> Will
>
> On Thursday, January 23, 2025 at 7:54:00 PM UTC-8 Dan Kortschak wrote:
>
>> On Thu, 2025-01-23 at 19:17 -0800, Meng Zhuo wrote: 
>> > Hi,  
>> > 
>> > What should we do if module named with version? 
>> > ``` 
>> > import ( 
>> >     "testing" 
>> > 
>> >     Spdx3_0_1 "github.com/spdx/spdx-go-model/v3_0_1" 
>> > ``` 
>> > 
>> > https://github.com/spdx/spdx-go-model/pull/1 
>>
>> From the code that's in that change, the import path is 
>> github.com/spdx/spdx-go-model/spdx_v3_0_1, not github.com/spdx/spdx-go- 
>> model/v3_0_1. 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/989dd64a-171c-431a-a7d5-8a346f4244ban%40googlegroups.com.

Reply via email to