Skip to content

Drop golang.org/x/image dependency#96

Merged
pwaller merged 1 commit intogo-gl:masterfrom
egonelbre:dropimage
Oct 26, 2023
Merged

Drop golang.org/x/image dependency#96
pwaller merged 1 commit intogo-gl:masterfrom
egonelbre:dropimage

Conversation

@egonelbre
Copy link
Contributor

This uses #95 as the base. So merge the other one before this.

There doesn't seem to be any real benfit from depending on golang.org/x/image, so drop it.

The package was only used for type definitions, however, there was no
functionality being used from that package.

Remove the unnecessary dependency.
@pwaller
Copy link
Member

pwaller commented Oct 26, 2023

I've rebased this for you. I agree with the changes. Question: does this have any compatilbility implications?

@egonelbre
Copy link
Contributor Author

@pwaller I'm not aware that it would. The only scenario would be that someone poking at things via reflect, which seems very unlikely. So, yeah, 99.9% sure it's safe.

@dmitshur
Copy link
Member

dmitshur commented Oct 26, 2023

If we were using type aliases (e.g. type Vec3 = f32.Vec3) then this change would've been a bigger deal. Since we're not, I agree it's reasonable to change its underlying type as done here without much real-world trouble.

@pwaller pwaller merged commit 6fb0641 into go-gl:master Oct 26, 2023
@egonelbre egonelbre deleted the dropimage branch October 27, 2023 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants