Skip to content

Fix domain strategy #3285

Fix domain strategy

Fix domain strategy #3285

Triggered via push December 14, 2024 16:46
Status Failure
Total duration 45s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
Build: common/dialer/resolve.go#L20
cannot use (*resolveParallelNetworkDialer)(nil) (value of type *resolveParallelNetworkDialer) as ParallelInterfaceDialer value in variable declaration: *resolveParallelNetworkDialer does not implement ParallelInterfaceDialer (wrong type for method DialParallelInterface)
Build: common/dialer/resolve.go#L47
cannot use &resolveParallelNetworkDialer{…} (value of type *resolveParallelNetworkDialer) as ParallelInterfaceDialer value in return statement: *resolveParallelNetworkDialer does not implement ParallelInterfaceDialer (wrong type for method DialParallelInterface)
Build: common/dialer/resolve.go#L131
cannot use strategy (variable of type constant.NetworkStrategy) as *constant.NetworkStrategy value in argument to DialParallelNetwork
Build: common/dialer/resolve.go#L133
cannot use strategy (variable of type constant.NetworkStrategy) as *constant.NetworkStrategy value in argument to DialSerialNetwork
Build: common/dialer/resolve.go#L155
cannot use strategy (variable of type constant.NetworkStrategy) as *constant.NetworkStrategy value in argument to ListenSerialNetworkPacket
Build: common/dialer/default_parallel_interface.go#L177
invalid case C.NetworkStrategyDefault in switch on strategy (mismatched types constant.NetworkStrategy and *constant.NetworkStrategy)
Build: common/dialer/default_parallel_interface.go#L192
invalid case C.NetworkStrategyHybrid in switch on strategy (mismatched types constant.NetworkStrategy and *constant.NetworkStrategy)
Build: common/dialer/default_parallel_interface.go#L200
invalid case C.NetworkStrategyFallback in switch on strategy (mismatched types constant.NetworkStrategy and *constant.NetworkStrategy) (typecheck)
Build: protocol/direct/outbound.go#L11
could not import github.com/sagernet/sing-box/common/dialer (-: # github.com/sagernet/sing-box/common/dialer
Build: common/dialer/resolve.go#L20
cannot use (*resolveParallelNetworkDialer)(nil) (value of type *resolveParallelNetworkDialer) as ParallelInterfaceDialer value in variable declaration: *resolveParallelNetworkDialer does not implement ParallelInterfaceDialer (wrong type for method DialParallelInterface)
Build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636