← Back to issue list

feat: Comment out replace statements to relative paths in go.mod

View original Github issue

Metadata

Project
craft-parts
Number
#1466
Type
pull request
State
open
Author
atandrewlee
Labels
Created
2026-02-20 19:23:46+00:00
Updated
2026-03-27 18:48:49+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

- [x] Have you followed the guidelines for contributing? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `make lint && make test`? - [ ] Have you added an entry to the changelog (`docs/reference/changelog.rst`)? --- From the discussion on the PR #1391, this PR adds logic to the `go-use` plugin 1. Checks if a `go.mod` exists or return an error 2. If the go.mod exists, it will remove replace statements that point to relative paths (starts with `./` or `../`) 3. An integration test to ensure this works (with both imports of one-line replace statements & multi line replace() blocks Note: I need to run make lint & test (I wasn't on an Ubuntu machine when developing this). Will do soon

Evaluation history

No evaluation history available.