{"id":364449,"date":"2023-06-16T18:22:14","date_gmt":"2023-06-16T17:22:14","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=go&p=364449"},"modified":"2023-06-16T18:22:17","modified_gmt":"2023-06-16T17:22:17","slug":"goland-2023-2-eap-5","status":"publish","type":"go","link":"https:\/\/blog.jetbrains.com\/go\/2023\/06\/16\/goland-2023-2-eap-5\/","title":{"rendered":"GoLand 2023.2 EAP #5 Is Out with an Intention Action to Update Dependencies in go.mod\u00a0\u00a0"},"content":{"rendered":"\n

The fifth GoLand 2023.2 EAP build is now available!<\/p>\n\n\n\n

You can get it via the Toolbox App<\/a>, download it from our website, use a snap package (for Ubuntu), or from inside GoLand, select Check IDE updates for: Early Access Program<\/em> in Settings<\/em> | Appearance & Behavior<\/em> | System Settings<\/em> | Updates.<\/em><\/p>\n\n\n\n

\n \n Download GoLand 2023.2 EAP\n <\/a>\n<\/p>\n\n\n\n

Intention actions to update dependencies in go.mod<\/em>\u00a0<\/h2>\n\n\n\n

We\u2019ve added several intention actions and inspections to help you update dependencies in go.mod<\/code> files faster.\u00a0<\/p>\n\n\n\n

Now, when you open your go.mod<\/code> file, GoLand highlights outdated dependencies. You can hover over the highlighted versions of a given package and use a quick-fix to update it.<\/p>\n\n\n\n

You can also update all dependencies to their patches or latest major versions, and there is an option to update only direct dependencies.<\/p>\n\n\n\n

\"\"\/<\/figure>\n\n\n\n

The outdated dependencies are highlighted thanks to the Dependency update available<\/em> inspection. We\u2019ve also added two more inspections: <\/p>\n\n\n\n

    \n
  1. Deprecated dependency <\/em>shows deprecated dependencies in strikethrough text.<\/li>\n<\/ol>\n\n\n\n
    \"\"\/<\/figure>\n\n\n\n
      \n
    1. Retracted dependency version<\/em> shows retracted version numbers in strikethrough text.  <\/li>\n<\/ol>\n\n\n\n
      \"\"\/<\/figure>\n\n\n\n

      You can manage these inspections, including their scope and severity, in Settings \/ Preferences | Editor | Inspections | Go modules<\/em>.<\/p>\n\n\n\n

      \"\"\/<\/figure>\n\n\n\n

      Version control systems<\/h2>\n\n\n\n

      Option to commit specific lines of code<\/h3>\n\n\n\n

      GoLand 2023.2 EAP 5 introduces a highly anticipated feature to selectively commit specific parts of code chunks. To perform a partial commit, select the lines within a chunk and call Include these lines into commit<\/em> from the context menu. The chunk will be divided into individual lines with the selected ones highlighted. You can add or exclude lines from the selection using checkboxes or the context menu. <\/p>\n\n\n\n

      \"\"\/<\/figure>\n\n\n\n

      Docker <\/h2>\n\n\n\n

      Preview of files inside Docker image layers <\/h3>\n\n\n\n

      It is now easy to access and preview the contents of a Docker image layer in the Services <\/em>view. Select the image from the list, select Show layers<\/em>, and click Analyze image for more information.<\/em> You can then view a list of the files stored in the layer and easily open a selected file in the editor by right-clicking on the file and calling the Open File <\/em>(or Download File<\/em> for binaries) option. <\/p>\n\n\n\n

      \"\"\/<\/figure>\n\n\n\n

      Set Docker container to run as a Before Launch <\/em>task for run configurations<\/h3>\n\n\n\n

      It is now possible to set a Docker run configuration to run before another configuration by designating it a Before Launch <\/em>task. The IDE will wait for the container that is currently running to be healthy, and then it will launch the next run configuration. To set up a queue, first create a required Docker run configuration and then add it to the container via Modify options <\/em>| Add before launch task | Run configuration.<\/em><\/p>\n\n\n\n

      \"\"\/<\/figure>\n\n\n\n

      Kubernetes <\/h2>\n\n\n\n

      Support for multiple kubeconfig files within a single project <\/h3>\n\n\n\n

      We have introduced a new feature that allows you to set up multiple kubeconfig files within a single project. This simplifies the experience of handling multiple clusters or working with environments on different clusters in the same project. To set the files up, go to File | Settings | Build, Execution, Deployment | Kubernetes.<\/em> <\/p>\n\n\n\n

      \"\"\/<\/figure>\n\n\n\n

      Ability to view deployment logs<\/h3>\n\n\n\n

      You can now view logs for deployments in Kubernetes clusters from the Services<\/em> tool window. Right-click on Deployment <\/em>in the tree and then select Follow Log<\/em> or Download Log<\/em> from the context menu. <\/p>\n\n\n\n

      \"\"\/<\/figure>\n\n\n\n

      That\u2019s it for today! We\u2019d love to hear what you think about the new features. Get in touch with us on Twitter<\/a>, leave your comments here, open an issue in our tracker<\/a>, or drop us a message in the Gophers Slack<\/a> #goland channel. Thanks!<\/p>\n","protected":false},"author":1254,"featured_media":353855,"comment_status":"closed","ping_status":"closed","template":"","categories":[826],"tags":[],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/wp-json\/wp\/v2\/go\/364449"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/wp-json\/wp\/v2\/go"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/wp-json\/wp\/v2\/types\/go"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/wp-json\/wp\/v2\/users\/1254"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/wp-json\/wp\/v2\/comments?post=364449"}],"version-history":[{"count":10,"href":"https:\/\/blog.jetbrains.com\/wp-json\/wp\/v2\/go\/364449\/revisions"}],"predecessor-version":[{"id":364473,"href":"https:\/\/blog.jetbrains.com\/wp-json\/wp\/v2\/go\/364449\/revisions\/364473"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/wp-json\/wp\/v2\/media\/353855"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/wp-json\/wp\/v2\/media?parent=364449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/wp-json\/wp\/v2\/categories?post=364449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/wp-json\/wp\/v2\/tags?post=364449"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/wp-json\/wp\/v2\/cross-post-tag?post=364449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}