'use yq version4 to update yaml file

im having the following code which works on yq 3 and when I try to upgrade to yq4 it fails

this works on yq3 yq w -i dep.yaml 'spec.spec.image' $(MY_VAL)

on yq4 I got error that it doenst know whow can I make it works I didn't find any match example which can help to my case

https://mikefarah.gitbook.io/yq/upgrading-from-v3



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source